2023-07-14 14:08:20 +00:00
|
|
|
name: "Cache outputs"
|
2023-07-14 11:27:44 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
2022-01-02 14:31:50 +00:00
|
|
|
jobs:
|
2022-07-08 00:26:49 +00:00
|
|
|
build-custom-packages:
|
2022-01-02 14:31:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-14 10:34:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-14 11:10:35 +00:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
2023-12-13 12:59:32 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@v9
|
2023-07-28 13:30:09 +00:00
|
|
|
with:
|
2023-09-01 11:28:56 +00:00
|
|
|
extra-conf: |
|
2023-07-28 13:30:09 +00:00
|
|
|
keep-going = true
|
2022-02-02 04:41:31 +00:00
|
|
|
- name: Prepare push to binary cache
|
2023-12-07 10:12:45 +00:00
|
|
|
uses: cachix/cachix-action@v13
|
2022-02-02 04:41:31 +00:00
|
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
2022-01-02 14:31:50 +00:00
|
|
|
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
|
2023-07-14 14:09:39 +00:00
|
|
|
env:
|
|
|
|
NIXPKGS_ALLOW_UNFREE: "1"
|