-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1022 Bytes
/
cachix.yml
File metadata and controls
36 lines (30 loc) · 1022 Bytes
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
name: Push to Cachix
on:
push:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
push:
strategy:
matrix:
include:
- system: x86_64-linux
runner: ubuntu-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v16
with:
name: firefly-toolbox
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build all packages and devShells
run: |
printf '%s' "$PWD" > .devenv-root
nix build --no-link --print-out-paths --impure \
--override-input devenv-root "file+file://$PWD/.devenv-root" \
--expr '
(builtins.attrValues (builtins.getFlake (toString ./.)).packages.${{ matrix.system }})
++ (builtins.attrValues (builtins.getFlake (toString ./.)).devShells.${{ matrix.system }})
' | cachix push firefly-toolbox