-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.09 KB
/
nix-build.yml
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
name: "Nix build"
permissions: read-all
on:
# Allows running this workflow manually
workflow_dispatch:
push:
branches: [master]
pull_request:
jobs:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- name: Run `nix build`
run: nix flake check -L
nix-bundle:
runs-on: ubuntu-latest
# Only run on "v*" tagged commits
if: startsWith(github.event.ref, 'refs/tags/v')
needs: [nix-build]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- uses: DeterminateSystems/magic-nix-cache-action@v2
with:
diagnostic-endpoint: ""
- name: Run `nix bundle`
run: |
nix bundle --out-link wetest-bundle-link
cp --dereference wetest-bundle-link wetest-bundle
- name: 'Upload bundle'
uses: actions/upload-artifact@v3
with:
name: wetest-bundle
path: wetest-bundle