Skip to content

Commit

Permalink
ci: fix codeql prebuild steps for unix OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Apr 16, 2024
1 parent 5db8af8 commit ea52329
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .codeql-prebuild-cpp-Linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e

sudo apt-get update -y
sudo apt-get install -y \
Expand Down Expand Up @@ -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"
1 change: 1 addition & 0 deletions .codeql-prebuild-cpp-Windows.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e

# update pacman
pacman --noconfirm -Suy
Expand Down
3 changes: 2 additions & 1 deletion .codeql-prebuild-cpp-macOS.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# install dependencies for C++ analysis
set -e

# install dependencies
brew install \
Expand All @@ -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"

0 comments on commit ea52329

Please sign in to comment.