Skip to content

Release 1.0.3

Release 1.0.3 #73

Workflow file for this run

name: check with nix
on:
push:
branches:
- "master"
tags:
- "*"
pull_request:
jobs:
check-nix:
name: Check
runs-on: ubuntu-22.04
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Nixpkgs inputs
uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
# Nix-specific logic begins here
- name: Check Rust formatting
run: |
nix develop --command \
cargo fmt --check
- name: editorconfig check
run: |
nix develop --command \
eclint \
-exclude "Cargo.lock"
- name: Check spelling
run: |
nix develop --command \
codespell \
--skip target,.git \
--ignore-words-list crate
build-and-test-nix:
needs: check-nix
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up Rust cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ matrix.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Test
if: "matrix.os == 'ubuntu-22.04'"
run: |
nix develop --command \
env RUSTFLAGS="-Clink-arg=-Wl,--build-id" cargo test
- name: Test
if: "matrix.os != 'ubuntu-22.04'"
run: |
nix develop --command \
cargo test