Skip to content

DS-970: Add Magic Nix Cache and other workflow changes #215

DS-970: Add Magic Nix Cache and other workflow changes

DS-970: Add Magic Nix Cache and other workflow changes #215

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check rustfmt
run: nix develop --command cargo fmt -- --check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: nix build -L
NixFlakeCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true
NixFormatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check nixpkgs-fmt formatting
run: nix develop --command sh -c "git ls-files '*.nix' | xargs nixpkgs-fmt --check"
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: greut/eclint-action@v0
SynthesizeIntegration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Verify synthesize integration test still passes
run: nix develop -c ./synthesize/integration-test-cases/verify.sh