Skip to content

Commit 91bae3a

Browse files
henrymercerCopilot
andcommitted
Check that the all-platform-bundle PR check uses an all-platform bundle
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent cfb3940 commit 91bae3a

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/__all-platform-bundle.yml‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pr-checks/checks/all-platform-bundle.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ steps:
1717
# Swift is not supported on Ubuntu so we manually exclude it from the list here
1818
languages: cpp,csharp,go,java,javascript,python,ruby
1919
tools: ${{ steps.prepare-test.outputs.tools-url }}
20+
- name: Check that the bundle contains tools for all platforms
21+
env:
22+
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
23+
run: |
24+
# Platform-specific bundles only contain the tools for their own platform.
25+
tools_dir="$(dirname "$CODEQL_PATH")/tools"
26+
for platform in linux64 osx64 win64; do
27+
if [[ ! -d "$tools_dir/$platform" ]]; then
28+
echo "::error::Expected an all-platform CodeQL bundle, but '$tools_dir' does not contain a '$platform' directory."
29+
exit 1
30+
fi
31+
done
2032
- name: Build code
2133
run: ./build.sh
2234
- uses: ./../action/analyze

0 commit comments

Comments
 (0)