From bcabd8b79c915632b104f273000db516f085b238 Mon Sep 17 00:00:00 2001 From: Eric Meinhardt Date: Sun, 5 Nov 2023 17:07:38 -0800 Subject: [PATCH] Initial cachix workflows --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ .github/workflows/develop.yml | 25 +++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/develop.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bb40275 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: "Build" +on: + pull_request: + push: + workflow_dispatch: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install nix + uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-23.05 + install_url: https://releases.nixos.org/nix/nix-2.13.5/install + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Cachix configuration + uses: cachix/cachix-action@v12 + with: + name: emeinhardt + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: nix-community + - name: Show nixpkgs version + run: nix-instantiate --eval -E '(import {}).lib.version' + - name: Nix build + run: nix build diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..e66061d --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,25 @@ +name: "Develop" +on: + workflow_dispatch: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install nix + uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-23.05 + install_url: https://releases.nixos.org/nix/nix-2.13.5/install + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Cachix configuration + uses: cachix/cachix-action@v12 + with: + name: emeinhardt + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: nix-community + - name: Show nixpkgs version + run: nix-instantiate --eval -E '(import {}).lib.version' + - name: Nix develop + run: nix develop