From 764a22d077b13452df27b6f786298e8e20b523e6 Mon Sep 17 00:00:00 2001 From: Chuck Grindel Date: Mon, 27 Nov 2023 14:34:48 -0700 Subject: [PATCH 1/2] chore: update to use tweag/configure-bazel-remote-cache-auth --- .github/workflows/workflow.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 5081253..8eb1393 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -38,16 +38,14 @@ jobs: - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=./nixpkgs.nix + # DO NOT MERGE!!! + # TODO: Update with the correct tagged release. + - uses: tweag/configure-bazel-remote-cache-auth@fix_output + with: + buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }} + bazelrc_path: .bazelrc.local - name: Configure - env: - BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }} run: | - if [ -z "$BUILDBUDDY_API_KEY" ]; then - cache_setting='--noremote_upload_local_results' - else - cache_setting="--remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" - fi - # Convert "ghc_X_Y_Z" to "X.Y.Z". GHC_VERSION="$(sed 's/^ghc_//;s/_/./g' <<<"${{ matrix.ghc-version }}")" @@ -58,12 +56,11 @@ jobs: sed -i.bak 's/^GHC_VERSION = .*$/GHC_VERSION = "'"$GHC_VERSION"'"/g' example/MODULE.bazel fi - cat >.bazelrc.local <>.bazelrc.local < Date: Tue, 28 Nov 2023 17:35:26 -0700 Subject: [PATCH 2/2] Update to use v0 tag --- .github/workflows/workflow.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 8eb1393..edac147 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -38,9 +38,7 @@ jobs: - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=./nixpkgs.nix - # DO NOT MERGE!!! - # TODO: Update with the correct tagged release. - - uses: tweag/configure-bazel-remote-cache-auth@fix_output + - uses: tweag/configure-bazel-remote-cache-auth@v0 with: buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }} bazelrc_path: .bazelrc.local