Download zstd nightly bundles in PR checks

This commit is contained in:
Henry Mercer 2024-08-23 16:17:59 +01:00
parent 335044a8db
commit 6240306694
3 changed files with 12 additions and 6 deletions

View file

@ -32,14 +32,20 @@ runs:
run: | run: |
set -e # Fail this Action if `gh release list` fails. set -e # Fail this Action if `gh release list` fails.
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
extension="tar.zst"
else
extension="tar.gz"
fi
if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then
artifact_name="codeql-bundle.tar.gz" artifact_name="codeql-bundle.$extension"
elif [[ "$RUNNER_OS" == "Linux" ]]; then elif [[ "$RUNNER_OS" == "Linux" ]]; then
artifact_name="codeql-bundle-linux64.tar.gz" artifact_name="codeql-bundle-linux64.$extension"
elif [[ "$RUNNER_OS" == "macOS" ]]; then elif [[ "$RUNNER_OS" == "macOS" ]]; then
artifact_name="codeql-bundle-osx64.tar.gz" artifact_name="codeql-bundle-osx64.$extension"
elif [[ "$RUNNER_OS" == "Windows" ]]; then elif [[ "$RUNNER_OS" == "Windows" ]]; then
artifact_name="codeql-bundle-win64.tar.gz" artifact_name="codeql-bundle-win64.$extension"
else else
echo "::error::Unrecognized OS $RUNNER_OS" echo "::error::Unrecognized OS $RUNNER_OS"
exit 1 exit 1

View file

@ -66,7 +66,7 @@ jobs:
with: with:
# Swift is not supported on Ubuntu so we manually exclude it from the list here # Swift is not supported on Ubuntu so we manually exclude it from the list here
languages: cpp,csharp,go,java,javascript,python,ruby languages: cpp,csharp,go,java,javascript,python,ruby
tools: ./codeql-bundle-linux64.tar.gz tools: ./codeql-bundle-linux64.tar.zst
- name: Build code - name: Build code
shell: bash shell: bash
run: ./build.sh run: ./build.sh

View file

@ -14,7 +14,7 @@ steps:
with: with:
# Swift is not supported on Ubuntu so we manually exclude it from the list here # Swift is not supported on Ubuntu so we manually exclude it from the list here
languages: cpp,csharp,go,java,javascript,python,ruby languages: cpp,csharp,go,java,javascript,python,ruby
tools: ./codeql-bundle-linux64.tar.gz tools: ./codeql-bundle-linux64.tar.zst
- name: Build code - name: Build code
shell: bash shell: bash
run: ./build.sh run: ./build.sh