From 836c7ba70cfbf8394ae77f6c1c439234431734b7 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 16 May 2023 07:35:29 -0400 Subject: ci: add nix ci workflow --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yaml (limited to '.github') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ebe17b6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: ci + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: checkout repository + uses: actions/checkout@v3 + + - name: install nix + uses: cachix/install-nix-action@v20 + + - uses: cachix/cachix-action@v12 + with: + name: getchoo + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + + - name: build + run: nix build -- cgit v1.2.3