Skip to content

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows #124

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows #124

Workflow file for this run

name: Check
on:
push:
paths:
- '**.nix'
- '**.rs'
- Cargo.*
- flake.lock
pull_request:
workflow_dispatch:
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- feature-set: ""
- feature-set: --all-features
- feature-set: --no-default-features
- feature-set: --no-default-features -F completions
- feature-set: --no-default-features -F completions,manpages
- feature-set: --no-default-features -F manpages
- feature-set: --no-default-features -F replace
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v11
with:
extra-conf: |
log-lines = 500
- name: Set up Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Set up build cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: build-${{ runner.os }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('flake.nix') }}-${{ hashFiles('**.lock') }}
- name: cargo test ${{ matrix.feature-set }}
run: nix develop -c cargo t -v ${{ matrix.feature-set }}
nix-flake:
name: Nix flake
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v11
with:
extra-conf: |
log-lines = 500
- name: Set up Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v7
with:
fail-mode: true
check-outdated: false
- name: Check Nix flake outputs
run: nix flake check --all-systems