2019-09-07 15:17:51 +00:00
|
|
|
stages:
|
2019-10-04 15:09:30 +00:00
|
|
|
- build
|
2019-10-07 13:55:48 +00:00
|
|
|
- package
|
2019-09-07 15:17:51 +00:00
|
|
|
- publish
|
|
|
|
|
2019-10-04 15:09:30 +00:00
|
|
|
build linux:
|
|
|
|
stage: build
|
2019-10-04 16:16:57 +00:00
|
|
|
image: rust
|
2019-09-07 15:17:51 +00:00
|
|
|
script:
|
2020-03-27 12:53:05 +00:00
|
|
|
- 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
|
2019-10-04 16:16:57 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-03-27 12:53:05 +00:00
|
|
|
- linux
|
2019-10-04 16:16:57 +00:00
|
|
|
expire_in: 1 day
|
2019-12-20 17:53:41 +00:00
|
|
|
tags:
|
2020-03-27 12:53:05 +00:00
|
|
|
- linux
|
2019-12-20 17:53:41 +00:00
|
|
|
|
|
|
|
build windows:
|
|
|
|
stage: build
|
|
|
|
script:
|
2020-03-27 12:55:38 +00:00
|
|
|
- choco install -y llvm
|
|
|
|
- wget https://win.rustup.rs/x86_64 -O rustup-init.exe
|
2020-04-10 15:25:16 +00:00
|
|
|
- .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain nightly
|
2020-03-27 14:39:30 +00:00
|
|
|
- $env:PATH+=";$env:USERPROFILE\.cargo\bin"
|
2020-03-27 13:05:24 +00:00
|
|
|
- refreshenv
|
2020-03-27 12:53:05 +00:00
|
|
|
- cargo build --release --target x86_64-pc-windows-msvc
|
|
|
|
- move target windows
|
2019-12-20 17:53:41 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-03-27 12:53:05 +00:00
|
|
|
- windows
|
2019-12-20 17:53:41 +00:00
|
|
|
expire_in: 1 day
|
|
|
|
tags:
|
2020-03-27 12:53:05 +00:00
|
|
|
- shared-windows
|
|
|
|
- windows
|
|
|
|
- windows-1809
|
2020-03-19 16:14:29 +00:00
|
|
|
|
2019-10-07 13:55:48 +00:00
|
|
|
package:
|
|
|
|
stage: package
|
2019-09-07 15:17:51 +00:00
|
|
|
script:
|
2020-03-27 12:53:05 +00:00
|
|
|
- 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
|
2019-10-04 16:16:57 +00:00
|
|
|
artifacts:
|
2019-10-04 17:39:18 +00:00
|
|
|
name: godot-tts
|
2019-10-04 16:16:57 +00:00
|
|
|
paths:
|
2020-03-27 12:53:05 +00:00
|
|
|
- godot-tts
|
2019-10-04 16:16:57 +00:00
|
|
|
expire_in: 1 day
|
2019-12-20 17:53:41 +00:00
|
|
|
tags:
|
2020-03-27 12:53:05 +00:00
|
|
|
- linux
|
2019-10-07 13:55:48 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
stage: publish
|
|
|
|
script:
|
2020-03-27 12:53:05 +00:00
|
|
|
- echo Publishing...
|
2019-10-07 13:55:48 +00:00
|
|
|
artifacts:
|
|
|
|
name: godot-tts
|
|
|
|
paths:
|
2020-03-27 12:53:05 +00:00
|
|
|
- godot-tts
|
2019-10-07 13:55:48 +00:00
|
|
|
only:
|
2020-03-27 12:53:05 +00:00
|
|
|
- tags
|
2019-12-20 17:53:41 +00:00
|
|
|
tags:
|
2020-03-27 12:53:05 +00:00
|
|
|
- linux
|