From f893c83a2ee6e448ba96513d3b09b01ab340c906 Mon Sep 17 00:00:00 2001 From: Gaballa Date: Fri, 22 May 2026 21:29:18 -0700 Subject: [PATCH 1/5] Add caching for Nix in CI workflow --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ac43748f..e4d1de10 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,6 +28,10 @@ jobs: - name: Install Nix if: steps.filter.outputs.source_code == 'true' uses: DeterminateSystems/nix-installer-action@main + + - name: Cache Nix + if: steps.filter.outputs.source_code == 'true' + uses: DeterminateSystems/magic-nix-cache-action@main - name: Format check if: steps.filter.outputs.source_code == 'true' From f894a840169f835156cb4fe63a38613ee49b1ed9 Mon Sep 17 00:00:00 2001 From: Mark Gaballa Date: Fri, 22 May 2026 21:33:44 -0700 Subject: [PATCH 2/5] test ci --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e8fcedae..34a9a8ce 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .DEFAULT_GOAL := build +#test + BIN_DIR := bin API_NAME := acmcsuf-api CLI_NAME := acmcsuf-cli From b42ce58f78fcd9b4f7865fc8b3ffb27fc887157f Mon Sep 17 00:00:00 2001 From: Mark Gaballa Date: Fri, 22 May 2026 21:36:59 -0700 Subject: [PATCH 3/5] test ci pt2 --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 34a9a8ce..273c87e6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ .DEFAULT_GOAL := build -#test BIN_DIR := bin API_NAME := acmcsuf-api From 251087c2f2dc7bbfc1c478d3bea0914a72319a8d Mon Sep 17 00:00:00 2001 From: Mark Gaballa Date: Fri, 22 May 2026 22:02:53 -0700 Subject: [PATCH 4/5] some experiementing with ci --- .github/workflows/ci.yaml | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e4d1de10..5d2bec8e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,26 +33,13 @@ jobs: if: steps.filter.outputs.source_code == 'true' uses: DeterminateSystems/magic-nix-cache-action@main - - name: Format check - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c bash -c "make fmt && git diff --exit-code" - - - name: Check - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c make check - - - name: Sql check - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c make check-sql - - - name: Build - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c make build - - - name: Generated files check - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c bash -c "make generate && git diff --exit-code" - - - name: Test - if: steps.filter.outputs.source_code == 'true' - run: nix develop .#ci -c make test + - name: CI + run: | + nix develop .#ci --command bash -c ' + make fmt && git diff --exit-code + make check + make check-sql + make build + make generate && git diff --exit-code + make test + ' From 6df3e9652181e59e34323b089e0442e557926a23 Mon Sep 17 00:00:00 2001 From: Mark Gaballa Date: Fri, 22 May 2026 22:06:27 -0700 Subject: [PATCH 5/5] test without cache --- .github/workflows/ci.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5d2bec8e..77660305 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,10 +29,6 @@ jobs: if: steps.filter.outputs.source_code == 'true' uses: DeterminateSystems/nix-installer-action@main - - name: Cache Nix - if: steps.filter.outputs.source_code == 'true' - uses: DeterminateSystems/magic-nix-cache-action@main - - name: CI run: | nix develop .#ci --command bash -c '