-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Disable flaky Swift autobuild checks"
This reverts commit ff39eb8.
- Loading branch information
1 parent
d859d17
commit e42f5e5
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Swift analysis using autobuild" | ||
description: "Tests creation of a Swift database using autobuild" | ||
versions: ["latest", "cached", "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/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 |