Merge pull request #2577 from github/aeisenberg/macos-13-runners

Move to macos-13 runners
This commit is contained in:
Andrew Eisenberg 2024-11-08 11:25:50 -08:00 committed by GitHub
commit acb9cb18ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 22 additions and 15 deletions

View file

@ -29,7 +29,7 @@ jobs:
include:
- os: ubuntu-latest
version: stable-v2.14.6
- os: macos-12
- os: macos-13
version: stable-v2.14.6
- os: ubuntu-latest
version: stable-v2.15.5

View file

@ -29,7 +29,7 @@ jobs:
include:
- os: ubuntu-latest
version: stable-v2.14.6
- os: macos-12
- os: macos-13
version: stable-v2.14.6
- os: ubuntu-latest
version: stable-v2.15.5

View file

@ -29,7 +29,7 @@ jobs:
include:
- os: ubuntu-latest
version: stable-v2.14.6
- os: macos-12
- os: macos-13
version: stable-v2.14.6
- os: ubuntu-latest
version: stable-v2.15.5

View file

@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-12
- os: macos-13
version: stable-v2.14.6
- os: ubuntu-latest
version: stable-v2.14.6
@ -88,13 +88,15 @@ jobs:
id: init
with:
db-location: ${{ runner.temp }}/customDbLocation
# Swift is not supported on Ubuntu so we manually exclude it from the list here
languages: ${{ runner.os == 'Linux' && 'cpp,csharp,go,java,javascript,python,ruby'
|| '' }}
# Swift is not supported on Ubuntu or codeql 2.14 so we manually exclude it from the list here
languages: ${{ (runner.os == 'Linux' || (runner.os == 'macOS' && matrix.version
== 'stable-v2.14.6')) && 'cpp,csharp,go,java,javascript,python,ruby' ||
'' }}
tools: ${{ steps.prepare-test.outputs.tools-url }}
- uses: ./../action/.github/actions/setup-swift
if: runner.os == 'macOS'
# Exclude macos on v2.14.6 since we can not longer run swift on ARM runners
if: runner.os == 'macOS' && matrix.version != 'stable-v2.14.6'
with:
codeql-path: ${{ steps.init.outputs.codeql-path }}
@ -147,7 +149,8 @@ jobs:
fi
- name: Check language autodetect for Swift on macOS
if: runner.os == 'macOS'
# Exclude macos on v2.14.6 since we can not longer run swift on ARM runners
if: runner.os == 'macOS' && matrix.version != 'stable-v2.14.6'
shell: bash
run: |
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}

View file

@ -75,7 +75,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04,ubuntu-22.04,windows-2019,windows-2022,macos-12,macos-13,macos-14]
os: [ubuntu-20.04,ubuntu-22.04,windows-2019,windows-2022,macos-13,macos-14]
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
runs-on: ${{ matrix.os }}

View file

@ -10,12 +10,13 @@ steps:
id: init
with:
db-location: "${{ runner.temp }}/customDbLocation"
# Swift is not supported on Ubuntu so we manually exclude it from the list here
languages: ${{ runner.os == 'Linux' && 'cpp,csharp,go,java,javascript,python,ruby' || '' }}
# Swift is not supported on Ubuntu or codeql 2.14 so we manually exclude it from the list here
languages: ${{ (runner.os == 'Linux' || (runner.os == 'macOS' && matrix.version == 'stable-v2.14.6')) && 'cpp,csharp,go,java,javascript,python,ruby' || '' }}
tools: ${{ steps.prepare-test.outputs.tools-url }}
- uses: ./../action/.github/actions/setup-swift
if: runner.os == 'macOS'
# Exclude macos on v2.14.6 since we can not longer run swift on ARM runners
if: runner.os == 'macOS' && matrix.version != 'stable-v2.14.6'
with:
codeql-path: ${{ steps.init.outputs.codeql-path }}
@ -68,7 +69,8 @@ steps:
fi
- name: Check language autodetect for Swift on macOS
if: runner.os == 'macOS'
# Exclude macos on v2.14.6 since we can not longer run swift on ARM runners
if: runner.os == 'macOS' && matrix.version != 'stable-v2.14.6'
shell: bash
run: |
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}

View file

@ -84,7 +84,7 @@ for file in (this_dir / 'checks').glob('*.yml'):
# "macos-latest" is now an ARM runner, so we run tests on the old CLIs on Intel runners instead.
if version in ["stable-v2.14.6"] and runnerImage == "macos-latest":
matrix.append({
'os': "macos-12",
'os': "macos-13",
'version': version
})
else:

View file

@ -8,7 +8,9 @@ javac Main.java
go build main.go
# Not all platforms support Swift
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "Compiling Swift"
swift build
fi