Skip to content

Bump cachix/install-nix-action from 31.9.0 to 31.10.1 #15

Bump cachix/install-nix-action from 31.9.0 to 31.10.1

Bump cachix/install-nix-action from 31.9.0 to 31.10.1 #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "**/*.rs"
- "**/Cargo.toml"
- "**/Cargo.lock"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yaml"
pull_request:
paths:
- "**/*.rs"
- "**/Cargo.toml"
- "**/Cargo.lock"
- "flake.nix"
- "flake.lock"
- ".github/workflows/ci.yaml"
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
name: Rust (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: 0
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c
with:
components: rustfmt, clippy
cache-shared-key: setup-rust-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/Cargo.lock') }}
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --all-features
- name: Build
run: cargo build --release
nix:
name: Nix build (ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Install Nix
uses: cachix/install-nix-action@1ca7d21a94afc7c957383a2d217460d980de4934
with:
github_access_token: ${{ github.token }}
- name: Build (flake default)
run: nix build .#default --print-build-logs
- name: Verify
run: ./result/bin/mmemo --version