nixos-config/.github/workflows/build.yml

27 lines
730 B
YAML
Raw Normal View History

2023-07-14 14:08:20 +00:00
name: "Cache outputs"
2023-07-14 11:27:44 +00:00
on:
push:
branches:
- master
- develop
jobs:
build-custom-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@v3
- uses: DeterminateSystems/nix-installer-action@v10
with:
2023-09-01 11:28:56 +00:00
extra-conf: |
keep-going = true
2022-02-02 04:41:31 +00:00
- name: Prepare push to binary cache
uses: cachix/cachix-action@v14
2022-02-02 04:41:31 +00:00
if: ${{ github.ref == 'refs/heads/master' }}
with:
name: foo-dogsquared
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build custom packages
2022-08-19 08:39:30 +00:00
run: nix build -f ./pkgs --impure
env:
NIXPKGS_ALLOW_UNFREE: "1"