mirror of
https://github.com/github/codeql-action.git
synced 2026-11-10 06:54:40 +00:00
Check that the all-platform-bundle PR check uses an all-platform bundle
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
12
.github/workflows/__all-platform-bundle.yml
generated
vendored
12
.github/workflows/__all-platform-bundle.yml
generated
vendored
@@ -92,6 +92,18 @@ jobs:
|
||||
# Swift is not supported on Ubuntu so we manually exclude it from the list here
|
||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||
- name: Check that the bundle contains tools for all platforms
|
||||
env:
|
||||
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
||||
run: |
|
||||
# Platform-specific bundles only contain the tools for their own platform.
|
||||
tools_dir="$(dirname "$CODEQL_PATH")/tools"
|
||||
for platform in linux64 osx64 win64; do
|
||||
if [[ ! -d "$tools_dir/$platform" ]]; then
|
||||
echo "::error::Expected an all-platform CodeQL bundle, but '$tools_dir' does not contain a '$platform' directory."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
- name: Build code
|
||||
run: ./build.sh
|
||||
- uses: ./../action/analyze
|
||||
|
||||
Reference in New Issue
Block a user