Update release and test builds to use LFS, and to incorporate new Android build process.

This commit is contained in:
Nolan Darilek 2020-08-18 10:48:04 -05:00
parent 705126ef2f
commit 3f611f18b8
2 changed files with 25 additions and 4 deletions

View File

@ -39,5 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- run: |
./gradlew assemble

View File

@ -14,7 +14,7 @@ jobs:
- run: |
sudo apt-get update
sudo apt-get install -y libspeechd-dev
cargo build --release --verbose
cargo build --release
mv target linux
- uses: actions/upload-artifact@v1
with:
@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@v2
- run: |
choco install -y llvm
cargo build --release --verbose
cargo build --release
move target windows
- uses: actions/upload-artifact@v1
with:
@ -48,10 +48,25 @@ jobs:
name: macos
path: macos
build_android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- run: |
./gradlew assemble
mv build android
- uses: actions/upload-artifact@v1
with:
name: android
path: android
package:
name: Package
runs-on: ubuntu-latest
needs: [build_linux, build_windows, build_macos]
needs: [build_linux, build_windows, build_macos, build_android]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
@ -63,19 +78,23 @@ jobs:
- uses: actions/download-artifact@v1
with:
name: macos
- uses: actions/download-artifact@v1
with:
name: android
- run: |
mkdir godot-tts
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
cp godot-tts.gdap godot-tts/
mkdir -p godot-tts/target/release
cp linux/release/*.so godot-tts/target/release
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 LICENSE godot-tts
cp README.md godot-tts
cp TTS.gd godot-tts.g* godot-tts
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
rm godot-tts/*.release
cp -R android godot-tts
zip -r9 godot-tts godot-tts
- uses: actions/create-release@v1
id: create_release