From 571aab63e449999fabdc99607c064c7e03b66138 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 3 Nov 2022 09:21:35 +1100 Subject: [PATCH] .github: tidy setting of environment variables --- .github/workflows/test_size.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_size.yml b/.github/workflows/test_size.yml index 336c8a84b9..b98323588b 100644 --- a/.github/workflows/test_size.yml +++ b/.github/workflows/test_size.yml @@ -72,11 +72,17 @@ jobs: NO_VERSIONS_DIR="$GITHUB_WORKSPACE/base_branch_bin_no_versions" mkdir "$NO_VERSIONS_DIR" + # export some environment variables designed to get + # repeatable builds from the same source: + export CHIBIOS_GIT_VERSION="12345678" + export GIT_VERSION="abcdef" + export GIT_VERSION_INT="15" + if [ "${{matrix.config}}" = "Hitec-Airspeed" ] || [ "${{matrix.config}}" = "f103-GPS" ]; then - CHIBIOS_GIT_VERSION="12345678" GIT_VERSION="abcdef" GIT_VERSION_INT="15" ./waf AP_Periph + ./waf AP_Periph else - CHIBIOS_GIT_VERSION="12345678" GIT_VERSION="abcdef" GIT_VERSION_INT="15" ./waf + ./waf fi cp -r build/${{matrix.config}}/bin/* "$NO_VERSIONS_DIR"