build: Add GitHub Action to cache some derivations
This commit is contained in:
parent
ad07f38bd7
commit
eed79eef59
1 changed files with 21 additions and 0 deletions
21
.github/workflows/build.yml
vendored
Normal file
21
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master']
|
||||
|
||||
jobs:
|
||||
build-x86_64-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: nifoc
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix build '.#nixosConfigurations.attic.pkgs.attic-server'
|
||||
- run: nix build '.#nixosConfigurations.attic.pkgs.attic-client'
|
||||
- run: nix build '.#nixosConfigurations.attic.pkgs.pkgsCross.aarch64-multiplatform.attic-client'
|
Loading…
Reference in a new issue