stages: - build_frontend - build_backend flutter-web: stage: build_frontend image: cirrusci/flutter script: - 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 artifacts: expire_in: 2 days paths: - "./lib/target/release/raid_manager_static" - "./lib/target/release/raid_manager" rust-nightly: stage: build_backend image: rustlang/rust:nightly script: - cargo build -r --manifest-path=lib/Cargo.toml - cargo build -r --manifest-path=lib/Cargo.toml --features static - cargo test -r --manifest-path=lib/Cargo.toml allow_failure: true