.github: tidy setting of environment variables

This commit is contained in:
Peter Barker 2022-11-03 09:21:35 +11:00 committed by Peter Barker
parent ca8e60a590
commit 571aab63e4

View File

@ -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"