Add GitHub build action (test)

This commit is contained in:
NullBite 2025-02-04 00:30:44 -05:00
parent 63492d7223
commit 6b39b303b5
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

19
.github/workflows/build-then-cache.yaml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Build and upload to Attic cache
on:
push:
branches:
- "build-test"
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flake-checker-action@main
- uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: 'nix build .#nixosConfigurations.nullbox.config.system.build.toplevel'