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 03:00:00 -05:00
|
|
|
- .#conduwuit
|
2025-01-15 00:52:18 -05:00
|
|
|
- "github:cything/nixpkgs/97f27249297bf5fbc563014ae9d4884dee27f1e0#nixosTests.garage.with-3node-replication1_x"
|
2025-01-16 11:04:19 -05:00
|
|
|
- ".#nixosConfigurations.livecd.config.system.build.isoImage"
|
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
|
|
|
|
- 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 }}'
|
2025-01-16 11:04:19 -05:00
|
|
|
- name: Compress Build Craft
|
|
|
|
run: |
|
|
|
|
tar cvf "./$(date -I).tar" ./result/*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
path: ./*.tar
|
|
|
|
overwrite: true
|
|
|
|
retention-days: 7days
|