godot-tts/.gitlab-ci.yml

73 lines
1.3 KiB
YAML
Raw Normal View History

2019-09-07 15:17:51 +00:00
stages:
2019-10-04 15:09:30 +00:00
- build
- package
2019-09-07 15:17:51 +00:00
- publish
2019-10-04 15:09:30 +00:00
build linux:
stage: build
image: rust
2019-09-07 15:17:51 +00:00
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/
2019-10-04 15:09:30 +00:00
- cargo build --release
- mv target linux
artifacts:
paths:
- linux
expire_in: 1 day
2019-12-20 17:53:41 +00:00
tags:
- linux
build windows:
stage: build
script:
2020-03-19 16:27:34 +00:00
- choco install llvm
- choco install rustup
- rustup update
2019-12-20 18:34:46 +00:00
- rustup default stable
2019-12-20 17:53:41 +00:00
- cargo build --release
- move target windows
artifacts:
paths:
- windows
expire_in: 1 day
tags:
- shared-windows
2019-12-20 17:53:41 +00:00
- windows
- windows-1809
2019-09-07 15:17:51 +00:00
package:
stage: package
2019-09-07 15:17:51 +00:00
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
2019-12-20 17:53:41 +00:00
- cp windows/release/*.dll godot-tts/target/release
- cp LICENSE godot-tts
- cp TTS.gd godot-tts.g* godot-tts
2019-10-10 00:19:37 +00:00
- cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
- rm godot-tts/*.release
artifacts:
2019-10-04 17:39:18 +00:00
name: godot-tts
paths:
- godot-tts
expire_in: 1 day
2019-12-20 17:53:41 +00:00
tags:
- linux
publish:
stage: publish
script:
- echo Publishing...
artifacts:
name: godot-tts
paths:
- godot-tts
only:
- tags
2019-12-20 17:53:41 +00:00
tags:
- linux