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

32 lines
851 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:43:42 -05:00
- .#attic-client
- .#attic-server
2025-01-09 00:53:01 -05:00
- .#eza
2025-01-09 03:00:00 -05:00
- .#conduwuit
2025-01-08 21:35:09 -05:00
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
2025-01-08 23:43:42 -05:00
with:
logger: pretty
2025-01-08 21:35:09 -05:00
- 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-09 00:46:42 -05:00
- uses: actions/checkout@v4
2025-01-08 22:22:02 -05:00
- run: nix build '${{ matrix.package }}'