summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2022-11-25 13:52:48 +0100
committerGitHub <noreply@github.com>2022-11-25 13:52:48 +0100
commit0dae06deb3240ed36ec6368de40e7d0719630531 (patch)
tree994d6b4dceb2d5987e7cfc1d259a8b8e5a47dd2f
parent663106ef6e3ee3c3a8d9231137aeccf1ddad6e1b (diff)
Set build metadata correctly in Windows build (#8692)
Without this, we tag the build as made by some random user account on some random host name which is not useful. (And minor bug in the cache key which has no effect on the build itself.)
-rw-r--r--.github/workflows/build-syncthing.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index 837bfe77ef..0fcce39c4f 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -16,6 +16,10 @@ env:
# Avoid hilarious amounts of obscuring log output when running tests.
LOGGER_DISCARD: "1"
+ # Our build metadata
+ BUILD_USER: builder
+ BUILD_HOST: github.syncthing.net
+
# A note on actions and third party code... The actions under actions/ (like
# `uses: actions/checkout`) are maintained by GitHub, and we need to trust
# GitHub to maintain their code and infrastructure or we're in deep shit in
@@ -92,7 +96,7 @@ jobs:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
- key: ${{ runner.os }}-go-${{ env.GOVERSION }}-package-${{ hashFiles('**/go.sum') }}
+ key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-package-${{ hashFiles('**/go.sum') }}
- name: Install dependencies
run: |