28 lines
895 B
YAML
28 lines
895 B
YAML
name: "Swift analysis using a custom build command"
|
|
description: "Tests creation of a Swift database using custom build"
|
|
versions: ["latest", "cached", "nightly-latest"]
|
|
operatingSystems: ["ubuntu", "macos"]
|
|
env:
|
|
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true"
|
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
|
steps:
|
|
- uses: swift-actions/setup-swift@5cdaa9161ad1f55ae39a5ea1784ef96de72f95d9
|
|
with:
|
|
swift-version: "5.7"
|
|
- uses: ./../action/init
|
|
with:
|
|
languages: swift
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
- name: Build code
|
|
shell: bash
|
|
run: ./build.sh
|
|
- uses: ./../action/analyze
|
|
id: analysis
|
|
- name: Check database
|
|
shell: bash
|
|
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
|