File tree Expand file tree Collapse file tree 3 files changed +44
-18
lines changed Expand file tree Collapse file tree 3 files changed +44
-18
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,22 @@ name: "Set up binary cache & push binaries"
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ pull_request :
6
+ branches :
7
+ - master
8
+ paths-ignore :
9
+ - .gitignore
10
+ - README.md
5
11
push :
6
12
branches :
7
13
- master
8
14
paths-ignore :
9
- - .github/**
10
15
- .gitignore
11
16
- README.md
12
17
13
18
jobs :
14
19
cachix :
20
+ name : " Build Exposed Packages"
15
21
runs-on : ubuntu-latest
16
22
strategy :
17
23
matrix :
@@ -27,28 +33,29 @@ jobs:
27
33
- symbols
28
34
- websearch
29
35
steps :
30
- - uses : easimon/maximize-build-space@v6
36
+ - uses : easimon/maximize-build-space@v8
31
37
with :
32
38
overprovision-lvm : true
33
39
remove-android : true
34
40
remove-dotnet : true
35
41
remove-haskell : true
36
- - uses : actions/checkout@v3
37
- - uses : cachix/install-nix-action@v22
38
- with :
39
- extra_nix_config : |
40
- access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
41
- auto-optimise-store = true
42
- experimental-features = nix-command flakes
43
- nix_path : nixpkgs=channel:nixos-unstable
42
+ remove-docker-images : true
43
+ remove-codeql : true
44
+
45
+ - name : Checkout
46
+ uses : actions/checkout@v4
47
+
48
+ - uses : DeterminateSystems/nix-installer-action@main
49
+ - uses : DeterminateSystems/magic-nix-cache-action@main
50
+
44
51
- uses : cachix/cachix-action@v12
45
52
with :
46
53
authToken : ${{ secrets.CACHIX_TOKEN }}
47
54
extraPullNames : nix-community
48
55
name : anyrun
56
+
49
57
- name : Set default git branch (to reduce log spam)
50
58
run : git config --global init.defaultBranch main
51
- - name : Validate Flakes
52
- run : nix flake check
59
+
53
60
- name : Build anyrun from the defined matrix
54
61
run : nix build .#${{ matrix.package }} --print-build-logs
Original file line number Diff line number Diff line change
1
+ name : Flake Check
2
+
3
+ on : [push, pull_request, workflow_dispatch]
4
+
5
+ jobs :
6
+ check-flake :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
12
+
13
+ - name : Install Nix
14
+ uses : DeterminateSystems/nix-installer-action@main
15
+ with :
16
+ logger : pretty
17
+
18
+ - name : Check Flake
19
+ run : nix flake check --accept-flake-config
You can’t perform that action at this time.
0 commit comments