From 9f8be3c7e1826078846e18fd4bec2542059ee7e8 Mon Sep 17 00:00:00 2001 From: Lucas Fugmann Date: Fri, 25 Nov 2022 16:26:10 +0100 Subject: [PATCH] add gh-actions workflow --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bfb606f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: main + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + check-flake: + name: Check Flake + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install Nix + uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + experimental-features = nix-command flakes + + - uses: cachix/cachix-action@v12 + with: + name: fruitbasket + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: nix-community + + - run: nix build + + - run: nix flake check -- 2.44.2