Skip to content

Commit 1428e58

Browse files
authored
Merge pull request #1621 from github/henrymercer/reenable-swift-autobuild-checks
Re-enable Swift autobuild checks
2 parents 2bee5fb + e7ce02a commit 1428e58

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed

.github/workflows/__swift-autobuild.yml

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy