Add iOS test and release builds.

This commit is contained in:
Nolan Darilek 2020-08-18 15:59:27 -05:00
parent 591e9a26c1
commit 550bb82c89
2 changed files with 23 additions and 1 deletions

View File

@ -33,6 +33,9 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: | - run: |
cargo build --release cargo build --release
rustup target add aarch64-apple-ios x86_64-apple-ios
cargo install cargo-lipo
cargo lipo --release
build_android: build_android:
name: Build Android name: Build Android

View File

@ -63,10 +63,25 @@ jobs:
name: android name: android
path: android path: android
build_macos:
name: Build MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: |
rustup target add aarch64-apple-ios x86_64-apple-ios
cargo install cargo-lipo
cargo lipo --release
mv target ios
- uses: actions/upload-artifact@v1
with:
name: ios
path: ios
package: package:
name: Package name: Package
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build_linux, build_windows, build_macos, build_android] needs: [build_linux, build_windows, build_macos, build_android, build_ios]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
@ -81,6 +96,9 @@ jobs:
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: android name: android
- uses: actions/download-artifact@v1
with:
name: ios
- run: | - run: |
mkdir godot-tts mkdir godot-tts
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
@ -90,6 +108,7 @@ jobs:
cp windows/release/*.dll godot-tts/target/release cp windows/release/*.dll godot-tts/target/release
cp macos/release/*.dylib godot-tts/target/release cp macos/release/*.dylib godot-tts/target/release
cp android/outputs/aar/godot-tts.aar godot-tts/ cp android/outputs/aar/godot-tts.aar godot-tts/
cp ios/universal/release/*.a godot-tts/target/release
cp LICENSE godot-tts cp LICENSE godot-tts
cp README.md godot-tts cp README.md godot-tts
cp TTS.gd godot-tts.g* godot-tts cp TTS.gd godot-tts.g* godot-tts