Skip to content

Commit e42f5e5

Browse files
henrymerceraeisenberg
authored andcommitted
Revert "Disable flaky Swift autobuild checks"
This reverts commit ff39eb8.
1 parent d859d17 commit e42f5e5

File tree

2 files changed

+105
-0
lines changed

2 files changed

+105
-0
lines changed

.github/workflows/__swift-autobuild.yml

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/swift-autobuild.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Swift analysis using autobuild"
2+
description: "Tests creation of a Swift database using autobuild"
3+
versions: ["latest", "cached", "nightly-latest"]
4+
# Swift autobuilder is only supported on MacOS for private beta
5+
operatingSystems: ["macos"]
6+
env:
7+
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
8+
steps:
9+
- uses: ./../action/init
10+
id: init
11+
with:
12+
languages: swift
13+
tools: ${{ steps.prepare-test.outputs.tools-url }}
14+
- uses: ./../action/.github/setup-swift
15+
with:
16+
codeql-path: ${{steps.init.outputs.codeql-path}}
17+
- name: Check working directory
18+
shell: bash
19+
run: pwd
20+
- uses: ./../action/autobuild
21+
timeout-minutes: 10
22+
- uses: ./../action/analyze
23+
id: analysis
24+
with:
25+
upload-database: false
26+
- name: Check database
27+
shell: bash
28+
run: |
29+
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
30+
if [[ ! -d "$SWIFT_DB" ]]; then
31+
echo "Did not create a database for Swift."
32+
exit 1
33+
fi

0 commit comments

Comments
 (0)