image: docker.nix-community.org/nixpkgs/nix-flakes:nixos-23.11 definitions: steps: - step: &build-and-checks name: Build and Checks script: - ./.ci/bin/runner ./.ci/bin/build-and-check caches: - cargo-home - cargo-target - nix-store - step: &build-check-and-publish name: Build, checks and publish to Crates.io script: - ./.ci/bin/runner ./.ci/bin/build-check-and-publish caches: - cargo-home - cargo-target - nix-store caches: cargo-home: key: files: - Cargo.lock - Cargo.toml path: $HOME/.cargo cargo-target: target nix-store: .nix-store-cache pipelines: tags: '*': - step: *build-check-and-publish branches: master: - step: *build-and-checks pull-requests: '**': - step: *build-and-checks