Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update runner as macos-11 is deprecating #2348

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-11, ubuntu-latest]
os: [windows-latest, ubuntu-latest]
arch: [x64, arm64]
include:
- os: ubuntu-latest
arch: x64
container: alpine:3.17
- os: macos-14-large
arch: x64
- os: macos-14-xlarge
arch: arm64
runs-on: ${{ matrix.os }}
needs: [generateNativeConfig]
steps:
Expand All @@ -197,18 +201,18 @@ jobs:
if: matrix.os == 'windows-latest'
run: echo "target=win32-${{ matrix.arch }}" >> $env:GITHUB_ENV
- shell: sh
if: matrix.os == 'macos-11'
if: startsWith( matrix.os, 'macos-14')
run: echo "target=darwin-${{ matrix.arch }}" >> $GITHUB_ENV
- shell: sh
if: matrix.os == 'ubuntu-latest'
run: echo "target=linux-${{ matrix.arch }}" >> $GITHUB_ENV

# Setup envierment
- name: switch xcode to 12.5.1
if: matrix.os == 'macos-11'
run: |
sudo xcode-select -s /Applications/Xcode_12.5.1.app/Contents/Developer
xcodebuild -version
# - name: switch xcode to 12.5.1
# if: matrix.os == 'macos-11'
# run: |
# sudo xcode-select -s /Applications/Xcode_12.5.1.app/Contents/Developer
# xcodebuild -version
- uses: al-cheb/configure-pagefile-action@v1.2
if: matrix.os == 'windows-latest'
with:
Expand Down Expand Up @@ -283,12 +287,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-11, ubuntu-latest]
os: [windows-latest, ubuntu-latest]
arch: [x64, arm64]
include:
- os: ubuntu-latest
arch: x64
container: alpine:3.17
- os: macos-14-large
arch: x64
- os: macos-14-xlarge
arch: arm64
runs-on: ${{ matrix.os }}
needs: [buildNative,buildPlatformIndependedPart]
steps:
Expand All @@ -297,7 +305,7 @@ jobs:
if: matrix.os == 'windows-latest'
run: echo "target=win32-${{ matrix.arch }}" >> $env:GITHUB_ENV
- shell: sh
if: matrix.os == 'macos-11'
if: startsWith( matrix.os, 'macos-14')
run: echo "target=darwin-${{ matrix.arch }}" >> $GITHUB_ENV
- shell: sh
if: matrix.os == 'ubuntu-latest'
Expand Down
Loading