nixos-config/.github/workflows/build.yml
dependabot[bot] 6b355d2cc5
ci: bump actions/checkout from 3 to 4 (#4)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 10:34:13 +00:00

27 lines
729 B
YAML

name: "Cache outputs"
on:
push:
branches:
- master
- develop
jobs:
build-custom-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v4
with:
extra-conf: |
keep-going = true
- name: Prepare push to binary cache
uses: cachix/cachix-action@v12
if: ${{ github.ref == 'refs/heads/master' }}
with:
name: foo-dogsquared
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build custom packages
run: nix build -f ./pkgs --impure
env:
NIXPKGS_ALLOW_UNFREE: "1"