mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-08 20:55:57 +00:00
73 lines
1.3 KiB
YAML
73 lines
1.3 KiB
YAML
stages:
|
|
- build
|
|
- package
|
|
- publish
|
|
|
|
build linux:
|
|
stage: build
|
|
image: rust
|
|
script:
|
|
- apt-get update
|
|
- apt-get install -y libclang-3.9-dev libspeechd-dev
|
|
- export CPATH=/usr/lib/llvm-3.9/lib/clang/3.9.1/include/
|
|
- cargo build --release
|
|
- mv target linux
|
|
artifacts:
|
|
paths:
|
|
- linux
|
|
expire_in: 1 day
|
|
tags:
|
|
- linux
|
|
|
|
build windows:
|
|
stage: build
|
|
script:
|
|
- choco install llvm
|
|
- choco install rustup
|
|
- rustup update
|
|
- rustup default stable
|
|
- cargo build --release
|
|
- move target windows
|
|
artifacts:
|
|
paths:
|
|
- windows
|
|
expire_in: 1 day
|
|
tags:
|
|
- shared-windows
|
|
- windows
|
|
- windows-1809
|
|
|
|
|
|
package:
|
|
stage: package
|
|
script:
|
|
- mkdir godot-tts
|
|
- cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
|
|
- mkdir -p godot-tts/target/release
|
|
- cp linux/release/*.so godot-tts/target/release
|
|
- cp windows/release/*.dll godot-tts/target/release
|
|
- cp LICENSE godot-tts
|
|
- cp TTS.gd godot-tts.g* godot-tts
|
|
- cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
|
|
- rm godot-tts/*.release
|
|
artifacts:
|
|
name: godot-tts
|
|
paths:
|
|
- godot-tts
|
|
expire_in: 1 day
|
|
tags:
|
|
- linux
|
|
|
|
publish:
|
|
stage: publish
|
|
script:
|
|
- echo Publishing...
|
|
artifacts:
|
|
name: godot-tts
|
|
paths:
|
|
- godot-tts
|
|
only:
|
|
- tags
|
|
tags:
|
|
- linux
|