From 167ae8c8c45033c8ae7493723206257f2ec47d59 Mon Sep 17 00:00:00 2001 From: George Adams Date: Tue, 21 Nov 2023 10:58:48 +0100 Subject: [PATCH] update actions --- .github/workflows/build.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13cd50c9f1..83637ec01c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,12 +109,15 @@ jobs: build_macos: name: macOS - runs-on: macos-11 + runs-on: ${{ matrix.version.distro }} strategy: fail-fast: false matrix: os: [macOS] - version: [jdk8u, jdk11u] + version: [ + { name: jdk8u, distro: macos-11 }, + { name: jdk11u, distro: macos-13 }, + ] variant: [temurin] steps: @@ -129,19 +132,24 @@ jobs: with: java-version: 7 distribution: 'zulu' - if: matrix.version == 'jdk8u' + if: matrix.version.name == 'jdk8u' - - name: Select correct Xcode + - name: Select correct Xcode (JDK8) + if: matrix.version.name == 'jdk8u' run: | - rm -rf /Applications/Xcode.app - ln -s /Applications/Xcode_11.7.app /Applications/Xcode.app ln -s /Applications/Xcode_11.7.app /Applications/Xcode-11.7.app + - name: Select correct Xcode (JDK11+) + if: matrix.version.name != 'jdk8u' + run: | + rm -rf /Applications/Xcode.app + ln -s /Applications/Xcode_15.0.1.app /Applications/Xcode.app + - name: Build macOS run: | export JAVA_HOME=$JAVA_HOME_11_X64 # Skip freetype build on jdk11+ - if [ ${{ matrix.version }} != "jdk8u" ]; then + if [ ${{ matrix.version.name }} != "jdk8u" ]; then export BUILD_ARGS="--skip-freetype --make-exploded-image --create-sbom" ./build-farm/make-adopt-build-farm.sh export BUILD_ARGS="--assemble-exploded-image --create-sbom" @@ -151,7 +159,7 @@ jobs: ./build-farm/make-adopt-build-farm.sh fi env: - JAVA_TO_BUILD: ${{ matrix.version }} + JAVA_TO_BUILD: ${{ matrix.version.name }} ARCHITECTURE: x64 VARIANT: ${{ matrix.variant }} TARGET_OS: mac @@ -161,7 +169,7 @@ jobs: - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 name: Collect and Archive Artifacts with: - name: ${{matrix.version}}-${{matrix.os}}-${{matrix.variant}} + name: ${{matrix.version.name}}-${{matrix.os}}-${{matrix.variant}} path: workspace/target/* - name: Unpack jdk @@ -185,7 +193,7 @@ jobs: name: Collect and Archive SmokeTest Results if: failure() with: - name: "${{matrix.version}}-${{matrix.os}}-${{matrix.variant}}_test_output" + name: "${{matrix.version.name}}-${{matrix.os}}-${{matrix.variant}}_test_output" path: ./**/output_*/ build_windows: