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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
lfs: true
- run: | - run: |
./gradlew assemble ./gradlew assemble

View File

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