2022-12-04 14:02:07 +00:00
|
|
|
stages:
|
2022-12-08 12:06:19 +00:00
|
|
|
- build_frontend
|
|
|
|
- build_backend
|
|
|
|
|
|
|
|
flutter-web:
|
|
|
|
stage: build_frontend
|
|
|
|
image: cirrusci/flutter
|
|
|
|
script:
|
2022-12-08 12:14:12 +00:00
|
|
|
- cd app
|
2022-12-08 12:06:19 +00:00
|
|
|
- flutter build web
|
|
|
|
artifacts:
|
|
|
|
expire_in: 2 days
|
|
|
|
paths:
|
|
|
|
- "./app/build/web/"
|
|
|
|
|
2022-12-04 14:02:07 +00:00
|
|
|
|
|
|
|
rust-latest:
|
2022-12-08 12:06:19 +00:00
|
|
|
stage: build_backend
|
2022-12-04 14:02:07 +00:00
|
|
|
image: rust:latest
|
|
|
|
script:
|
2022-12-08 12:06:19 +00:00
|
|
|
- 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
|
2022-12-08 13:22:37 +00:00
|
|
|
- cp ./lib/target/release/raid_manager* .
|
2022-12-08 12:06:19 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 2 days
|
|
|
|
paths:
|
2022-12-08 13:22:37 +00:00
|
|
|
- "./raid_manager_static"
|
|
|
|
- "./raid_manager"
|
2022-12-04 14:02:07 +00:00
|
|
|
|
|
|
|
rust-nightly:
|
2022-12-08 12:06:19 +00:00
|
|
|
stage: build_backend
|
2022-12-04 14:02:07 +00:00
|
|
|
image: rustlang/rust:nightly
|
|
|
|
script:
|
2022-12-08 13:22:37 +00:00
|
|
|
- mkdir ./lib/webroot
|
|
|
|
- cp -r ./app/build/web/* ./lib/webroot
|
2022-12-08 12:06:19 +00:00
|
|
|
- cargo build -r --manifest-path=lib/Cargo.toml --features static
|
2022-12-08 13:22:37 +00:00
|
|
|
- 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
|