mirror of https://github.com/ppy/SDL3-CS.git
Create single PR for binary updates
This commit is contained in:
parent
a035dd9f99
commit
788afa6ab1
|
|
@ -70,15 +70,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
user_id: ${{ steps.get_uid.outputs.uid }}
|
user_id: ${{ steps.get_uid.outputs.uid }}
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Compress native directory
|
||||||
uses: peter-evans/create-pull-request@v6
|
run: tar -cf native-${{ matrix.platform.name }}.tar native
|
||||||
|
|
||||||
|
- name: Upload native artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
commit-message: Update ${{ matrix.platform.name }} SDL binaries
|
name: native-${{ matrix.platform.name }}
|
||||||
title: Update ${{ matrix.platform.name }} SDL binaries
|
path: native-${{ matrix.platform.name }}.tar
|
||||||
body: This PR has been auto-generated to update the ${{ matrix.platform.name }} SDL binaries.
|
if-no-files-found: error
|
||||||
branch: update-${{ matrix.platform.name }}-binaries
|
|
||||||
env:
|
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
||||||
|
|
||||||
build-ios:
|
build-ios:
|
||||||
name: ios
|
name: ios
|
||||||
|
|
@ -104,15 +104,15 @@ jobs:
|
||||||
cp External/SDL/Xcode/SDL/build/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/SDL3 native/ios/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/SDL3;
|
cp External/SDL/Xcode/SDL/build/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/SDL3 native/ios/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/SDL3;
|
||||||
cp External/SDL/Xcode/SDL/build/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/Info.plist native/ios/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/Info.plist;
|
cp External/SDL/Xcode/SDL/build/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/Info.plist native/ios/SDL3.xcframework/ios-arm64_x86_64-simulator/SDL3.framework/Info.plist;
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Compress native directory
|
||||||
uses: peter-evans/create-pull-request@v6
|
run: tar -cf native-ios.tar native
|
||||||
|
|
||||||
|
- name: Upload native artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
commit-message: Update iOS SDL binaries
|
name: native-ios
|
||||||
title: Update iOS SDL binaries
|
path: native-ios.tar
|
||||||
body: This PR has been auto-generated to update the iOS SDL binaries
|
if-no-files-found: error
|
||||||
branch: update-ios-binaries
|
|
||||||
env:
|
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
name: android
|
name: android
|
||||||
|
|
@ -165,12 +165,58 @@ jobs:
|
||||||
javac -cp $ANDROID_HOME/platforms/$PLATFORM_VER/android.jar -encoding utf8 org/libsdl/app/*.java
|
javac -cp $ANDROID_HOME/platforms/$PLATFORM_VER/android.jar -encoding utf8 org/libsdl/app/*.java
|
||||||
jar cvf $OUTPUT/SDL3AndroidBridge.jar org/libsdl/app/*.class
|
jar cvf $OUTPUT/SDL3AndroidBridge.jar org/libsdl/app/*.class
|
||||||
|
|
||||||
|
- name: Compress native directory
|
||||||
|
run: tar -cf native-android.tar native
|
||||||
|
|
||||||
|
- name: Upload native artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: native-android
|
||||||
|
path: native-android.tar
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Upload JAR artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: android-jar
|
||||||
|
path: SDL3-CS.Android/Jars/SDL3AndroidBridge.jar
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
make-pr:
|
||||||
|
name: Submit pull request
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [ build, build-ios, build-android ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Download native artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
pattern: native-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Decompress native artifacts
|
||||||
|
run: |
|
||||||
|
for file in native-*.tar
|
||||||
|
do
|
||||||
|
tar -xf "$file"
|
||||||
|
done
|
||||||
|
rm native-*.tar
|
||||||
|
|
||||||
|
- name: Download JAR artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: android-jar
|
||||||
|
path: SDL3-CS.Android/Jars/
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
commit-message: Update Android SDL binaries
|
commit-message: Update native binaries
|
||||||
title: Update Android SDL binaries
|
title: Update native binaries
|
||||||
body: This PR has been auto-generated to update the Android SDL binaries
|
body: This PR has been auto-generated to update the native SDL binaries
|
||||||
branch: update-android-binaries
|
branch: update-native-binaries
|
||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue