From 6b39b303b53ba1b0f4d6da981516e5dc5fb93448 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 4 Feb 2025 00:30:44 -0500 Subject: [PATCH] Add GitHub build action (test) --- .github/workflows/build-then-cache.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/build-then-cache.yaml diff --git a/.github/workflows/build-then-cache.yaml b/.github/workflows/build-then-cache.yaml new file mode 100644 index 0000000..40c85d5 --- /dev/null +++ b/.github/workflows/build-then-cache.yaml @@ -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'