Skip to content

Commit

Permalink
Merge pull request #1621 from github/henrymercer/reenable-swift-autob…
Browse files Browse the repository at this point in the history
…uild-checks

Re-enable Swift autobuild checks
  • Loading branch information
henrymercer authored Jun 17, 2024
2 parents 2bee5fb + e7ce02a commit 1428e58
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/__swift-autobuild.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions pr-checks/checks/swift-autobuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Swift analysis using autobuild"
description: "Tests creation of a Swift database using autobuild"
# versions: ["latest", "cached", "nightly-latest"]
versions: ["nightly-latest"]
# Swift autobuilder is only supported on MacOS for private beta
operatingSystems: ["macos"]
env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
steps:
- uses: ./../action/init
id: init
with:
languages: swift
tools: ${{ steps.prepare-test.outputs.tools-url }}
- uses: ./../action/.github/actions/setup-swift
with:
codeql-path: ${{steps.init.outputs.codeql-path}}
- name: Check working directory
shell: bash
run: pwd
- uses: ./../action/autobuild
timeout-minutes: 10
- uses: ./../action/analyze
id: analysis
with:
upload-database: false
- 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

0 comments on commit 1428e58

Please sign in to comment.