From 937e71eeb428def6e0e2fa0f3906706380a98433 Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 24 Dec 2023 18:42:41 +0100 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6037e2f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: build overlay + +on: + push: + +jobs: + eval: + name: eval flake + runs-on: ubuntu-latest + + outputs: + matrix: ${{ steps.eval.outputs.matrix }} + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v9 + + - name: evaluate packages + id: eval + run: echo "matrix=$(nix eval --json .#ghaMatrix)" >> "$GITHUB_OUTPUT" + + build: + needs: eval + strategy: + matrix: ${{ fromJson(needs.eval.outputs.matrix) }} + + name: build ${{ matrix.pkg }} + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@v9 + + - name: setup cachix + uses: cachix/cachix-action@v13 + with: + name: uku3lig + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + + - name: build + run: nix build -L .#${{ matrix.pkg }} \ No newline at end of file