From 1f43d36ceb114dd50ceb49fccd3c24132d3fa396 Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Sat, 2 Nov 2024 08:34:23 -0400 Subject: [PATCH] chore(ci): cache build output (#96) * chore(ci): cache build output Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> whitespace change Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> go change Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> bump cache action version Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> revert whitespace change Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> revert temporary change, also hash go.sum Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> * fix silliness Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --------- Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9c7f09c..8a2f69d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,14 @@ jobs: go-version: "1.22" - name: Get dependencies run: go mod download + - name: Restore build output from cache + id: cache-build + uses: actions/cache@v4 + with: + path: bin/manager + key: ${{ runner.os }}-go-build-${{ hashFiles('**/*.go', 'go.sum') }} - name: Build + if: steps.cache-build.outputs.cache-hit != 'true' run: make - name: Run Unit-Tests run: make test-parallel