Skip to content

Document finished features #341

Document finished features

Document finished features #341

Workflow file for this run

name: ci
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
paths:
- "**/*.rs"
permissions:
contents: read
id-token: write
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
SCCACHE_GHA_ENABLED: "true"
SCCACHE_GHA_VERSION: "1"
jobs:
ci:
runs-on: ubuntu-22.04
defaults:
run:
shell: nix develop .#ci --command bash {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v13
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Configure SCCache
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL);
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN);
- name: Initialize Nix shell
run: nix develop .#ci
- name: Run checks
run: |
set -eufo pipefail
cargo fmt --all --check
cargo clippy
cargo check --workspace
cargo build --workspace
cargo test --all-targets
cargo test --doc
- name: Show SCCache stats
if: always() && !cancelled()
run: sccache --show-stats