forked from shanesveller/nix-beam-flakes
-
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (42 loc) · 1.36 KB
/
test.yml
File metadata and controls
45 lines (42 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "Test"
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.ref }}-test
cancel-in-progress: true
jobs:
checks:
name: Flake Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: NixOS/nix-installer-action@main
- name: Enable Nix Store Caching
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14
with:
diagnostic-endpoint: ""
- run: nix -L flake check --all-systems
- run: nix -L flake check ./dev --all-systems
packages:
name: Build Packages
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: NixOS/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14
with:
diagnostic-endpoint: ""
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
if: github.ref == 'refs/heads/main'
with:
name: nix-beam-flakes
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
pathsToPush: "./result"
skipAddingSubstituter: true
- run: nix -L build .#all