Skip to content

Update cachix.nix

Update cachix.nix #3

Workflow file for this run

name: "Update cachix cache for bleeding edge"
on:
workflow_run:
workflows: ["r-daily"]
push:
branches:
- r-daily-source
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@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
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 --argstr system x86_64-linux cachix.nix
nix-build --argstr system aarch64-linux cachix.nix
else
nix-build cachix.nix
fi
- run: nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push rstats-on-nix
- run: nix-shell --run "echo OK"