Skip to content

Commit

Permalink
ci: add nix build action
Browse files Browse the repository at this point in the history
ci: configure better options for nix check

ci: use checkout v4

ci: consolidate nix-check action into main action
  • Loading branch information
youwen5 committed Nov 2, 2024
1 parent 62820e3 commit b0668c1
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: main

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
with:
rust-version: nightly-2024-06-25

- name: check
- name: check
run: cargo check --locked

- name: build
Expand All @@ -58,5 +58,25 @@ jobs:
- name: test
run: cargo nextest run --no-fail-fast

- name: run ignored tests
- name: run ignored tests
run: cargo nextest run -- --ignored

build_nix_targets:
name: Build Nix targets
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- name: Activate Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
with:
use-flakehub: false

- name: Build default package
run: nix build

0 comments on commit b0668c1

Please sign in to comment.