From 4d1ba317f5a704590717381a991bca1b4c682529 Mon Sep 17 00:00:00 2001 From: cy Date: Wed, 8 Jan 2025 21:35:09 -0500 Subject: [PATCH] test new workflow --- .github/workflows/build-and-cache.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-and-cache.yml diff --git a/.github/workflows/build-and-cache.yml b/.github/workflows/build-and-cache.yml new file mode 100644 index 0000000..7662410 --- /dev/null +++ b/.github/workflows/build-and-cache.yml @@ -0,0 +1,26 @@ +name: build and cache random stuff + +on: + workflow_dispatch: + push: + +jobs: + build: + 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 }} + + - run: nix build github:nixos/nixpkgs/e12eb3ea24df94fe90bf1661d1f711fe6fe80202#vault-tasks