Skip to content

Commit e378f5b

Browse files
authored
ci: speed up nix build (#11697)
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
1 parent 96ab1a5 commit e378f5b

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/workflow.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,35 @@ jobs:
118118
runs-on: ${{ matrix.os }}
119119
steps:
120120
- uses: actions/checkout@v4
121-
- uses: cachix/install-nix-action@v22
121+
- uses: cachix/install-nix-action@v31
122+
with:
123+
extra_nix_config: |
124+
extra-substituters = https://anmonteiro.nix-cache.workers.dev
125+
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
122126
- run: nix build
123127

124128
fmt:
125129
name: Format
126130
runs-on: ubuntu-latest
127131
steps:
128132
- uses: actions/checkout@v4
129-
- uses: cachix/install-nix-action@v18
133+
- uses: cachix/install-nix-action@v31
134+
with:
135+
extra_nix_config: |
136+
extra-substituters = https://anmonteiro.nix-cache.workers.dev
137+
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
130138
- run: nix develop .#fmt -c make fmt
131139

132140
doc:
133141
name: Documentation
134142
runs-on: ubuntu-latest
135143
steps:
136144
- uses: actions/checkout@v4
137-
- uses: cachix/install-nix-action@v18
145+
- uses: cachix/install-nix-action@v31
146+
with:
147+
extra_nix_config: |
148+
extra-substituters = https://anmonteiro.nix-cache.workers.dev
149+
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
138150
- run: nix develop .#doc -c make doc
139151
env:
140152
LC_ALL: C
@@ -144,7 +156,11 @@ jobs:
144156
runs-on: ubuntu-latest
145157
steps:
146158
- uses: actions/checkout@v4
147-
- uses: cachix/install-nix-action@v22
159+
- uses: cachix/install-nix-action@v31
160+
with:
161+
extra_nix_config: |
162+
extra-substituters = https://anmonteiro.nix-cache.workers.dev
163+
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
148164
- run: nix develop .#coq -c make test-coq
149165
env:
150166
# We disable the Dune cache when running the tests
@@ -236,5 +252,9 @@ jobs:
236252
runs-on: ubuntu-latest
237253
steps:
238254
- uses: actions/checkout@v4
239-
- uses: cachix/install-nix-action@v22
255+
- uses: cachix/install-nix-action@v31
256+
with:
257+
extra_nix_config: |
258+
extra-substituters = https://anmonteiro.nix-cache.workers.dev
259+
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
240260
- run: nix develop .#microbench -c make dune build bench/micro

0 commit comments

Comments
 (0)