ci: add nix workflows
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
65fc5d5ed7
commit
a26a2fd484
2 changed files with 72 additions and 0 deletions
44
.github/workflows/nix.yml
vendored
Normal file
44
.github/workflows/nix.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
name: Nix
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v8
|
||||
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||
|
||||
- name: Build refraction
|
||||
run: nix build -L --fallback
|
||||
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v8
|
||||
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||
|
||||
- name: Run checks
|
||||
run: nix flake check -L --show-trace
|
Loading…
Add table
Add a link
Reference in a new issue