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

34 lines
948 B
YAML
Raw Normal View History

2025-01-08 21:35:09 -05:00
name: build and cache random stuff
on:
workflow_dispatch:
push:
jobs:
build:
2025-01-08 22:22:02 -05:00
strategy:
matrix:
package:
2025-01-08 23:07:02 -05:00
- github:cything/attic/e91261dc9a22d267700ab9095155f5581ac3b06c#attic
- github:cything/attic/e91261dc9a22d267700ab9095155f5581ac3b06c#attic-server
- github:cything/attic/e91261dc9a22d267700ab9095155f5581ac3b06c#attic-client
2025-01-08 22:22:02 -05:00
2025-01-08 21:35:09 -05:00
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- 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 }}
2025-01-08 22:22:02 -05:00
- run: nix build '${{ matrix.package }}'