-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update codeql to handle multiple OSes (#2425)
- Loading branch information
1 parent
76d08eb
commit 5db8af8
Showing
4 changed files
with
103 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# install dependencies for C++ analysis | ||
|
||
# update pacman | ||
pacman --noconfirm -Suy | ||
|
||
# install dependencies | ||
pacman --noconfirm -S \ | ||
base-devel \ | ||
cmake \ | ||
diffutils \ | ||
gcc \ | ||
git \ | ||
make \ | ||
mingw-w64-x86_64-binutils \ | ||
mingw-w64-x86_64-boost \ | ||
mingw-w64-x86_64-cmake \ | ||
mingw-w64-x86_64-curl \ | ||
mingw-w64-x86_64-miniupnpc \ | ||
mingw-w64-x86_64-nlohmann-json \ | ||
mingw-w64-x86_64-nodejs \ | ||
mingw-w64-x86_64-onevpl \ | ||
mingw-w64-x86_64-openssl \ | ||
mingw-w64-x86_64-opus \ | ||
mingw-w64-x86_64-rust \ | ||
mingw-w64-x86_64-toolchain | ||
|
||
# build | ||
mkdir -p build | ||
cd build || exit 1 | ||
cmake -G "MinGW Makefiles" .. | ||
mingw32-make -j"$(nproc)" | ||
|
||
# skip autobuild | ||
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# install dependencies for C++ analysis | ||
|
||
# install dependencies | ||
brew install \ | ||
boost \ | ||
cmake \ | ||
miniupnpc \ | ||
node \ | ||
opus \ | ||
pkg-config | ||
|
||
# build | ||
mkdir -p build | ||
cd build || exit 1 | ||
cmake -G "Unix Makefiles" .. | ||
mingw32-make -j"$(sysctl -n hw.logicalcpu)" | ||
|
||
# skip autobuild | ||
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters