Build separate UWP DLL.

This commit is contained in:
Nolan Darilek 2020-10-08 20:28:19 -05:00
parent 17220b4634
commit 3c2e2220b0

View File

@ -30,13 +30,29 @@ jobs:
- run: | - run: |
choco install -y llvm choco install -y llvm
rustup update rustup update
cargo build --release cargo build --all-features --release
move target windows move target windows
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v1
with: with:
name: windows name: windows
path: windows path: windows
build_uwp:
name: Build UWP
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: |
choco install -y llvm
rustup update
cargo build --release
move target uwp
move uwp\release\godot_tts.dll uwp\release\godot_tts.uwp.dll
- uses: actions/upload-artifact@v1
with:
name: uwp
path: uwp
build_macos: build_macos:
name: Build MacOS name: Build MacOS
runs-on: macos-latest runs-on: macos-latest
@ -85,7 +101,15 @@ jobs:
package: package:
name: Package name: Package
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build_linux, build_windows, build_macos, build_android, build_ios] needs:
[
build_linux,
build_windows,
build_uwp,
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
@ -94,6 +118,9 @@ jobs:
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: windows name: windows
- uses: actions/download-artifact@v1
with:
name: uwp
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: macos name: macos
@ -104,19 +131,16 @@ jobs:
with: with:
name: ios name: ios
- run: | - 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 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 uwp/release/godot_tts.uwp.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 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
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
rm godot-tts/*.release rm godot-tts/*.release
zip -r9 godot-tts godot-tts zip -r9 godot-tts godot-tts
- uses: actions/create-release@v1 - uses: actions/create-release@v1