Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set up Swift version from extractor
  • Loading branch information
angelapwen committed Dec 8, 2022
commit 4d8bc9a7533519ba11d97e735b127269de513388
12 changes: 9 additions & 3 deletions .github/workflows/__export-file-baseline-information.yml

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

9 changes: 8 additions & 1 deletion .github/workflows/__multi-language-autodetect.yml

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

8 changes: 7 additions & 1 deletion .github/workflows/__swift-autobuild.yml

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

8 changes: 7 additions & 1 deletion .github/workflows/__swift-custom-build.yml

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

12 changes: 9 additions & 3 deletions pr-checks/checks/export-file-baseline-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ name: "Export file baseline information"
description: "Tests that file baseline information is exported when the feature is enabled"
versions: ["nightly-latest"]
steps:
- name: Get Swift version
id: get_swift_version
shell: bash
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
# Windows doesn't support Swift
if: runner.os != 'Windows
# We don't support Swift on Windows
if: runner.os != 'Windows'
with:
swift-version: "5.7.1"
swift-version: "${{steps.get_swift_version.outputs.version}}"
- uses: ./../action/init
with:
languages: javascript
Expand Down
9 changes: 8 additions & 1 deletion pr-checks/checks/multi-language-autodetect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ operatingSystems: ["ubuntu", "macos"]
env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" # Remove when Swift is GA.
steps:
- name: Get Swift version
id: get_swift_version
shell: bash
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT

- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
with:
swift-version: "5.7.1"
swift-version: "${{steps.get_swift_version.outputs.version}}"

- uses: ./../action/init
with:
Expand Down
8 changes: 7 additions & 1 deletion pr-checks/checks/swift-autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ operatingSystems: ["macos"]
env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true"
steps:
- name: Get Swift version
id: get_swift_version
shell: bash
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
with:
swift-version: "5.7.1"
swift-version: "${{steps.get_swift_version.outputs.version}}"
- uses: ./../action/init
with:
languages: swift
Expand Down
8 changes: 7 additions & 1 deletion pr-checks/checks/swift-custom-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true"
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
steps:
- name: Get Swift version
id: get_swift_version
shell: bash
run: |
codeql/experimental/swift/tools/*/extractor --version | awk '/version/ { print $3 }'
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@194625b58a582570f61cc707c3b558086c26b723
with:
swift-version: "5.7.1"
swift-version: "${{steps.get_swift_version.outputs.version}}"
- uses: ./../action/init
with:
languages: swift
Expand Down