forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.17 KB
/
update-cachix.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
name: "Update cachix cache for bleeding edge"
on:
push:
branches:
- r-daily
jobs:
r-update-cachix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: rstats-on-nix
# If you chose signing key for write access
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH }}'
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
nix-build --keep-going --max-jobs 1 --cores 2 --argstr system x86_64-linux cachix.nix
nix-build --keep-going --max-jobs 1 --cores 2 --argstr system aarch64-linux cachix.nix
else
nix-build --keep-going --max-jobs 1 --cores 2 cachix.nix
fi
- run: nix-store -qR --include-outputs $(nix-instantiate cachix.nix) | cachix push rstats-on-nix
- run: nix-shell cachix.nix --run "echo OK"