ci: fix codeql prebuild steps for unix OSes (#2431)

This commit is contained in:
ReenigneArcher 2024-04-16 23:00:10 -04:00 committed by GitHub
parent 5db8af8a3f
commit ec8170cb40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e
sudo apt-get update -y
sudo apt-get install -y \
@ -59,7 +60,7 @@ sudo rm /root/cuda.run
mkdir -p build
cd build || exit 1
cmake -G "Unix Makefiles" ..
mingw32-make -j"$(nproc)"
make -j"$(nproc)"
# skip autobuild
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"

View File

@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e
# update pacman
pacman --noconfirm -Suy
@ -6,7 +7,6 @@ pacman --noconfirm -Suy
# install dependencies
pacman --noconfirm -S \
base-devel \
cmake \
diffutils \
gcc \
git \

View File

@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e
# install dependencies
brew install \
@ -13,7 +14,7 @@ brew install \
mkdir -p build
cd build || exit 1
cmake -G "Unix Makefiles" ..
mingw32-make -j"$(sysctl -n hw.logicalcpu)"
make -j"$(sysctl -n hw.logicalcpu)"
# skip autobuild
echo "skip_autobuild=true" >> "$GITHUB_OUTPUT"