build: bump version to 0.19.0
#1438
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- ci/* | |
- feat/* | |
- feature/* | |
- fix/* | |
- hotfix/* | |
- release/* | |
pull_request: | |
paths: | |
- "**/src/**" | |
- ".github/**" | |
- Cargo.lock | |
- Cargo.toml | |
- deny.toml | |
- rust-toolchain.toml | |
- rustfmt.toml | |
env: | |
CARGO_TERM_COLOR: always | |
SCCACHE_GHA_ENABLED: true | |
RUSTC_WRAPPER: "sccache" | |
concurrency: | |
group: rust-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rustfmt: | |
name: Check Rust format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Show rustfmt version | |
run: | | |
nix develop --command cargo fmt --version | |
- name: Run cargo fmt | |
run: | | |
nix develop --command cargo fmt --all --verbose --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
needs: | |
- rustfmt | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Pre Cache | |
run: | | |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/ | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
./target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('flake.lock', '**/Cargo.lock') }} | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@v0.0.6 | |
- name: Show cargo clippy version | |
run: | | |
nix develop --command cargo clippy --version | |
- name: Run cargo clippy | |
run: | | |
nix develop --command cargo clippy-all | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: | |
- clippy | |
env: | |
NEXTEST_RETRIES: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
mode: | |
- release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Pre Cache | |
run: | | |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/ | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
./target/ | |
key: ${{ runner.os }}-cargo-${{ matrix.mode }}-${{ hashFiles('flake.lock', '**/Cargo.lock') }} | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@v0.0.6 | |
- name: Show cargo-nextest version | |
run: | | |
nix develop --command cargo nextest --version | |
- name: Test with cargo-nextest | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: | | |
nix develop --command cargo nextest-all ${{ matrix.mode == 'release' && '--release' || '' }} | |
doc: | |
name: Doc | |
runs-on: ubuntu-latest | |
needs: | |
- clippy | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Pre Cache | |
run: | | |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/ | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
./target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('flake.lock', '**/Cargo.lock') }} | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@v0.0.6 | |
- name: Run cargo doc | |
run: | | |
nix develop --command cargo doc-all |