diff options
author | Be <be@mixxx.org> | 2020-11-18 17:03:57 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-18 17:15:39 -0600 |
commit | 3e9b0f8eeafec478b005b56d70563cf1746a9d19 (patch) | |
tree | 1b52ac9fca5f9d3d7b01388b344dd787e8752807 /.github/workflows | |
parent | 6ccf635e97a6330f7eca1c1f16c73df3215eb58d (diff) |
GH Actions: set MACOSX_DEPLOYMENT_TARGET from environment name
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0872419ad1..6a5ddc910e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,10 +100,6 @@ jobs: name: macOS 10.15 runs-on: macos-10.15 env: - # macOS 10.12 is the minimum requirement for Qt 5.12. - # Check the minimum requirement when updating to a build environment - # with an updated Qt version. - MACOSX_DEPLOYMENT_TARGET: 10.12 APPLE_CODESIGN_IDENTITY: 2C2B5D3EDCE82BA55E22E9A67F16F8D03E390870 steps: - name: clone Git repository @@ -153,6 +149,13 @@ jobs: fi - name: build run: | + if [[ $MIXXX_ENVNAME =~ .*macosminimum([0-9]*\.[0-9]*).* ]]; then + export MACOSX_DEPLOYMENT_TARGET=${BASH_REMATCH[1]} + else + echo "Build environment did not match expected pattern. Check cmake/macos_build_environment_name file." + exit + fi + mkdir -p /Users/runner/buildenv export MIXXX_ENVPATH="/Users/runner/buildenv/$MIXXX_ENVNAME" if [ ! -d "$MIXXX_ENVPATH" ]; then |