nixos-config/.github/workflows/build-and-cache.yml
2025-01-18 19:26:21 -05:00

27 lines
766 B
YAML

name: build and cache random stuff
on:
workflow_dispatch:
push:
jobs:
build:
strategy:
matrix:
package:
- github:cything/nixpkgs/fd06e41125350bc3db5628df49d3b84e4652a59d#lact
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ vars.ATTIC_ENDPOINT }}
cache: ${{ vars.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix build -L '${{ matrix.package }}'