Skip to content

Commit

Permalink
ci: fix codeql prebuild steps for unix OSes (LizardByte#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Apr 17, 2024
1 parent 5db8af8 commit ec8170c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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"
2 changes: 1 addition & 1 deletion .codeql-prebuild-cpp-Windows.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# install dependencies for C++ analysis
set -e

# update pacman
pacman --noconfirm -Suy

# install dependencies
pacman --noconfirm -S \
base-devel \
cmake \
diffutils \
gcc \
git \
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 ec8170c

Please sign in to comment.