From 6a8a9ad3b7b8e9c256e06272df364553223138c9 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Tue, 28 May 2024 13:44:09 +0530 Subject: [PATCH 1/2] workflows: update-flake-lock should now run monthly --- .github/workflows/update-flake-lock.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml index 139fb10e..2b65c329 100644 --- a/.github/workflows/update-flake-lock.yml +++ b/.github/workflows/update-flake-lock.yml @@ -2,8 +2,7 @@ name: update-flake-lock on: workflow_dispatch: # allows manual triggering schedule: - - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - # - cron: '0 0 * * *' # runs everyday at 00:00 + - cron: '0 0 1 * *' # Run monthly push: paths: - 'flake.nix' @@ -14,7 +13,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v25 + uses: cachix/install-nix-action@v27 with: extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} From 95771f159a1bbec6db425ef4ddae1d9a4523e086 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Tue, 28 May 2024 13:46:29 +0530 Subject: [PATCH 2/2] workflows: add CI nix-tests workflow It checks the flake and nix dependencies then builds the package --- .github/workflows/ci.yml | 2 ++ .github/workflows/nix-tests.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/nix-tests.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90db5639..fdc568fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,3 +14,5 @@ jobs: uses: ./.github/workflows/dependencies.yml test: uses: ./.github/workflows/test.yml + nix-tests: + uses: ./.github/workflows/nix-tests.yml diff --git a/.github/workflows/nix-tests.yml b/.github/workflows/nix-tests.yml new file mode 100644 index 00000000..d5af0945 --- /dev/null +++ b/.github/workflows/nix-tests.yml @@ -0,0 +1,17 @@ +name: "Nix-Tests" +on: + workflow_call: + +jobs: + nix-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v27 + with: + extra_nix_config: | + experimental-features = nix-command flakes + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - run: nix flake show + - run: nix flake check --print-build-logs + - run: nix build --print-build-logs