33 lines
1,017 B
YAML
33 lines
1,017 B
YAML
name: build and cache random stuff
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
package:
|
|
- github:cything/nixpkgs/c445390da1ea998af17d77dabaab7820993dbd1f#lact
|
|
- github:cything/nixpkgs/c445390da1ea998af17d77dabaab7820993dbd1f#lact.tests
|
|
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
|
|
- uses: cachix/cachix-action@v15
|
|
with:
|
|
name: cything
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
- name: Setup Attic cache
|
|
uses: ryanccn/attic-action@v0
|
|
with:
|
|
endpoint: ${{ vars.ATTIC_ENDPOINT }}
|
|
cache: ${{ vars.ATTIC_CACHE }}
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
|
- uses: actions/checkout@v4
|
|
- run: nix build '${{ matrix.package }}'
|