Skip to content

Commit 6240306

Browse files
committed
Download zstd nightly bundles in PR checks
1 parent 335044a commit 6240306

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/actions/prepare-test/action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@ runs:
3232
run: |
3333
set -e # Fail this Action if `gh release list` fails.
3434
35+
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
36+
extension="tar.zst"
37+
else
38+
extension="tar.gz"
39+
fi
40+
3541
if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then
36-
artifact_name="codeql-bundle.tar.gz"
42+
artifact_name="codeql-bundle.$extension"
3743
elif [[ "$RUNNER_OS" == "Linux" ]]; then
38-
artifact_name="codeql-bundle-linux64.tar.gz"
44+
artifact_name="codeql-bundle-linux64.$extension"
3945
elif [[ "$RUNNER_OS" == "macOS" ]]; then
40-
artifact_name="codeql-bundle-osx64.tar.gz"
46+
artifact_name="codeql-bundle-osx64.$extension"
4147
elif [[ "$RUNNER_OS" == "Windows" ]]; then
42-
artifact_name="codeql-bundle-win64.tar.gz"
48+
artifact_name="codeql-bundle-win64.$extension"
4349
else
4450
echo "::error::Unrecognized OS $RUNNER_OS"
4551
exit 1

.github/workflows/__test-local-codeql.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/test-local-codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ steps:
1414
with:
1515
# Swift is not supported on Ubuntu so we manually exclude it from the list here
1616
languages: cpp,csharp,go,java,javascript,python,ruby
17-
tools: ./codeql-bundle-linux64.tar.gz
17+
tools: ./codeql-bundle-linux64.tar.zst
1818
- name: Build code
1919
shell: bash
2020
run: ./build.sh

0 commit comments

Comments
 (0)