File tree Expand file tree Collapse file tree 3 files changed +33
-51
lines changed Expand file tree Collapse file tree 3 files changed +33
-51
lines changed Original file line number Diff line number Diff line change 1+ name : Nix setup
2+ description : Installs and configures nix and related tools
3+ runs :
4+ using : " composite"
5+ steps :
6+ - uses : DeterminateSystems/nix-installer-action@v9
7+ with :
8+ github-token : ${{ env.GITHUB_TOKEN }}
9+ extra-conf : accept-flake-config = true
10+
11+ - uses : DeterminateSystems/magic-nix-cache-action@v2
12+
13+ - uses : cachix/cachix-action@v14
14+ with :
15+ name : foliage
16+ authToken : ${{ env.CACHIX_AUTH_TOKEN }}
Original file line number Diff line number Diff line change @@ -13,40 +13,18 @@ jobs:
1313
1414 steps :
1515 - uses : actions/checkout@v4
16-
17- - name : Install Nix
18- uses : DeterminateSystems/nix-installer-action@v4
19- with :
20- github-token : ${{ secrets.GITHUB_TOKEN }}
21-
22- - uses : DeterminateSystems/magic-nix-cache-action@v2
23-
24- - uses : cachix/cachix-action@v12
25- with :
26- name : foliage
27- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
28-
29- - run : nix develop --accept-flake-config --command fourmolu -m check .
16+ - uses : ./.github/actions/nix-setup
17+ - run : nix develop --command fourmolu -m check .
3018
3119 build :
3220 runs-on :
3321 - ubuntu-latest
3422
3523 steps :
3624 - uses : actions/checkout@v4
37-
38- - name : Install Nix
39- uses : DeterminateSystems/nix-installer-action@v4
40- with :
41- github-token : ${{ secrets.GITHUB_TOKEN }}
42-
43- - uses : DeterminateSystems/magic-nix-cache-action@v2
44-
45- - uses : cachix/cachix-action@v12
46- with :
47- name : foliage
48- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
49-
50- - run : nix build --accept-flake-config
51-
52- - run : nix build --accept-flake-config .#checks.x86_64-linux.foliage:test:foliage-test-suite
25+ - uses : ./.github/actions/nix-setup
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ CACHIX_AUTH_TOKEN : ${{ secrets.CACHIX_AUTH_TOKEN }}
29+ - run : nix build
30+ - run : nix build --print-build-logs .#checks.x86_64-linux.foliage:test:foliage-test-suite
Original file line number Diff line number Diff line change @@ -3,34 +3,22 @@ name: update-flake-lock
33on :
44 workflow_dispatch : # allows manual triggering
55 schedule :
6- - cron : ' 0 0 * * 0' # runs weekly on Sunday at 00:00
6+ - cron : " 0 0 * * 0" # runs weekly on Sunday at 00:00
77
88jobs :
99 lockfile :
1010 runs-on : ubuntu-latest
1111 steps :
12- - name : Checkout repository
13- uses : actions/checkout@v3
12+ - uses : actions/checkout@v4
13+ - uses : ./.github/ actions/nix-setup
1414
15- - name : Install Nix
16- uses : DeterminateSystems/nix-installer-action@v4
15+ - uses : DeterminateSystems/update-flake-lock@v20
1716 with :
18- github-token : ${{ secrets.GITHUB_TOKEN }}
19-
20- - uses : DeterminateSystems/magic-nix-cache-action@v2
21-
22- - uses : cachix/cachix-action@v12
23- with :
24- name : foliage
25- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
26-
27- - name : Update flake.lock
28- uses : DeterminateSystems/update-flake-lock@v16
29- with :
30- pr-title : " Update flake.lock" # Title of PR to be created
31- pr-labels : | # Labels to be set on the PR
17+ # Title of PR to be created
18+ pr-title : " Update flake.lock"
19+ # Labels to be set on the PR
20+ pr-labels : |
3221 dependencies
3322 automated
3423
35- - name : Print PR number
36- run : echo Opened pull request ${{ steps.update.outputs.pull-request-number }}.
24+ - run : echo Opened pull request ${{ steps.update.outputs.pull-request-number }}.
You can’t perform that action at this time.
0 commit comments