From 550bb82c893eee0e296108b18a390445c660eb36 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 18 Aug 2020 15:59:27 -0500 Subject: [PATCH] Add iOS test and release builds. --- .github/workflows/build.yml | 3 +++ .github/workflows/release.yml | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3550ae..af8b799 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,9 @@ jobs: - uses: actions/checkout@v2 - run: | cargo build --release + rustup target add aarch64-apple-ios x86_64-apple-ios + cargo install cargo-lipo + cargo lipo --release build_android: name: Build Android diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ef675c..f8a37b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,10 +63,25 @@ jobs: name: 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: name: Package 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: - uses: actions/checkout@v2 - uses: actions/download-artifact@v1 @@ -81,6 +96,9 @@ jobs: - uses: actions/download-artifact@v1 with: name: android + - uses: actions/download-artifact@v1 + with: + name: ios - run: | mkdir godot-tts cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib @@ -90,6 +108,7 @@ jobs: cp windows/release/*.dll godot-tts/target/release cp macos/release/*.dylib godot-tts/target/release cp android/outputs/aar/godot-tts.aar godot-tts/ + cp ios/universal/release/*.a godot-tts/target/release cp LICENSE godot-tts cp README.md godot-tts cp TTS.gd godot-tts.g* godot-tts