summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2020-11-18 16:29:31 -0600
committerBe <be@mixxx.org>2020-11-18 17:02:09 -0600
commit6ccf635e97a6330f7eca1c1f16c73df3215eb58d (patch)
tree44f6daebf4a462b62039160d8de117a67cf4dafc /.github
parent65214e17fa66fac879c924a45f990a169634d444 (diff)
GH Actions: read macOS build environment name from file
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5e45fb6e3b..0872419ad1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -100,7 +100,6 @@ jobs:
name: macOS 10.15
runs-on: macos-10.15
env:
- MIXXX_ENVNAME: 2.3-1db6c06-sdk10.15-macosminimum10.12-x86_64
# 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.
@@ -119,13 +118,18 @@ jobs:
restore-keys: |
${{ runner.os }}-ccache-${{ github.head_ref }}
${{ runner.os }}-ccache
+ - name: read build environment file
+ id: read_build_environment_file
+ run: |
+ read -r MIXXX_ENVNAME < cmake/macos_build_environment_name
+ echo "::set-output name=buildenv_name::$MIXXX_ENVNAME"
- name: macOS build environment cache
uses: actions/cache@v2
env:
cache-name: macOS build environment
with:
path: /Users/runner/buildenv
- key: macOS-build-environment-${{ env.MIXXX_ENVNAME }}
+ key: macOS-build-environment-${{ steps.read_build_environment_file.outputs.buildenv_name }}
- name: import code signing identity
env:
MACOS_CODESIGN_OPENSSL_PASSWORD: ${{ secrets.MACOS_CODESIGN_OPENSSL_PASSWORD }}
@@ -178,6 +182,7 @@ jobs:
ccache -s
env:
CMAKEFLAGS_MACOS: -DCOREAUDIO=ON -DHSS1394=ON -DMACOS_BUNDLE=ON
+ MIXXX_ENVNAME: ${{ steps.read_build_environment_file.outputs.buildenv_name }}
- name: package app bundle
working-directory: cmake_build
run: |