Raid_Manager/.gitlab-ci.yml

53 lines
1.1 KiB
YAML
Raw Normal View History

2022-12-04 14:02:07 +00:00
stages:
- build_frontend
- build_backend
flutter-web:
stage: build_frontend
image: cirrusci/flutter
script:
2022-12-08 12:14:12 +00:00
- cd app
- flutter build web
artifacts:
expire_in: 2 days
paths:
- "./app/build/web/"
2022-12-04 14:02:07 +00:00
rust-latest:
stage: build_backend
2022-12-04 14:02:07 +00:00
image: rust:latest
script:
2022-12-09 22:18:13 +00:00
- cd lib
- mkdir ./webroot
- cp -r ../app/build/web/* ./webroot
- cargo build -r --features static
- mv ./target/release/raid_manager ./target/release/raid_manager_static
- cargo build -r
- cargo test -r
- cp ./target/release/raid_manager* ..
artifacts:
expire_in: 2 days
paths:
- "./raid_manager_static"
- "./raid_manager"
2022-12-10 12:08:34 +00:00
cache:
key: shared-rust-latest-cache
paths:
- lib/target/
2022-12-04 14:02:07 +00:00
rust-nightly:
stage: build_backend
2022-12-04 14:02:07 +00:00
image: rustlang/rust:nightly
script:
- mkdir ./lib/webroot
- cp -r ./app/build/web/* ./lib/webroot
- cargo build -r --manifest-path=lib/Cargo.toml --features static
- cargo build -r --manifest-path=lib/Cargo.toml
2022-12-06 23:19:10 +00:00
- cargo test -r --manifest-path=lib/Cargo.toml
allow_failure: true
2022-12-10 12:08:34 +00:00
cache:
key: shared-rust-nightly-cache
paths:
- lib/target/