From fe537f14752bc2b830b02b7317635fce82b44436 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sat, 20 Jul 2024 20:04:38 +0200 Subject: [PATCH 1/2] ci: init flake check --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ab2e8d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: "ci" +on: + workflow_dispatch: # allows manual triggering + pull_request: + branches: [main] + paths-ignore: + - '**.md' + push: + branches: [main] + paths-ignore: + - '**.md' + merge_group: +jobs: + flake-check: + runs-on: ubuntu-latest + environment: cachix + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Nix Flakes doesn't work on shallow clones + - uses: cachix/install-nix-action@V27 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: kenji + # If you chose API tokens for write access OR if you have a private cache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: "flake check" + run: nix flake check -Lvv --no-update-lock-file From 05366d75d43cfd7112ac233656c16e1d321813a3 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sat, 20 Jul 2024 20:19:23 +0200 Subject: [PATCH 2/2] chore(ci): comment out `cargo-deny` checks for now --- nix/checks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/checks.nix b/nix/checks.nix index cbcf265..184269a 100644 --- a/nix/checks.nix +++ b/nix/checks.nix @@ -7,7 +7,7 @@ _: { fe cargoArtifacts cargoClippy - cargoDeny + # cargoDeny cargoDoc cargoTest cargoTarpaulin