mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Rather than pinning every macOS job to macOS 15, only run the older CodeQL CLI versions (which need Xcode 16, and so macOS 15) there. Newer versions, which support Swift 6.2, run on the latest macOS runner with its default Xcode, so we keep exercising the common latest-CLI-on-latest-runner combination. To express this, `sync.ts` now supports an optional per-OS-entry `codeql-versions` filter, used by `multi-language-autodetect` to send old versions to `macos-15-xlarge` and new versions to `macos-latest-xlarge`. `swift-custom-build` only runs `linked`/`default`/`nightly`, which all support Swift 6.2, so it no longer needs the Xcode 16 step or a macOS 15 pin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
34 lines
825 B
YAML
34 lines
825 B
YAML
name: "Swift analysis using a custom build command"
|
|
description: "Tests creation of a Swift database using custom build"
|
|
versions:
|
|
- linked
|
|
- default
|
|
- nightly-latest
|
|
operatingSystems:
|
|
- macos
|
|
installGo: true
|
|
installDotNet: true
|
|
env:
|
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
|
steps:
|
|
- uses: ./../action/init
|
|
id: init
|
|
with:
|
|
languages: swift
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
- name: Check working directory
|
|
run: pwd
|
|
- name: Build code
|
|
run: ./build.sh
|
|
- uses: ./../action/analyze
|
|
id: analysis
|
|
with:
|
|
upload-database: false
|
|
- name: Check database
|
|
run: |
|
|
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
|
if [[ ! -d "$SWIFT_DB" ]]; then
|
|
echo "Did not create a database for Swift."
|
|
exit 1
|
|
fi
|