44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
stages:
|
|
- build_frontend
|
|
- build_backend
|
|
|
|
flutter-web:
|
|
stage: build_frontend
|
|
image: cirrusci/flutter
|
|
script:
|
|
- cd app
|
|
- flutter build web
|
|
artifacts:
|
|
expire_in: 2 days
|
|
paths:
|
|
- "./app/build/web/"
|
|
|
|
|
|
rust-latest:
|
|
stage: build_backend
|
|
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
|
|
- cargo build -r --manifest-path=lib/Cargo.toml
|
|
- cargo test -r --manifest-path=lib/Cargo.toml
|
|
- cp ./lib/target/release/raid_manager* .
|
|
artifacts:
|
|
expire_in: 2 days
|
|
paths:
|
|
- "./raid_manager_static"
|
|
- "./raid_manager"
|
|
|
|
rust-nightly:
|
|
stage: build_backend
|
|
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
|
|
- cargo test -r --manifest-path=lib/Cargo.toml
|
|
allow_failure: true
|