Raid_Manager/.gitlab-ci.yml

41 lines
1.0 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:
- mkdir ./lib/webroot
- cp -r ./app/build/web/* ./lib/webroot
- cargo build -r --manifest-path=lib/Cargo.toml --features static
- mv ./lib/target/release/raid_manager ./lib/target/release/raid_manager_static
2022-12-06 23:19:10 +00:00
- cargo build -r --manifest-path=lib/Cargo.toml
- cargo test -r --manifest-path=lib/Cargo.toml
artifacts:
expire_in: 2 days
paths:
- "./lib/target/release/raid_manager_static"
- "./lib/target/release/raid_manager"
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:
2022-12-06 23:19:10 +00:00
- cargo build -r --manifest-path=lib/Cargo.toml
- cargo build -r --manifest-path=lib/Cargo.toml --features static
2022-12-06 23:19:10 +00:00
- cargo test -r --manifest-path=lib/Cargo.toml
allow_failure: true