mirror of
https://github.com/github/codeql-action.git
synced 2026-05-22 13:59:03 +00:00
a32db48565
These jobs are not rate-limiting so we don't need to run them on larger runners.
37 lines
974 B
YAML
37 lines
974 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:
|
|
- name: Use Xcode 16
|
|
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
|
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
|
- 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
|