Skip to content

Commit 10856b8

Browse files
ci(codeql): install brew x86_64
1 parent f6cb689 commit 10856b8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.codeql-prebuild-cpp-macOS.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# install dependencies for C++ analysis
22
set -e
33

4+
# setup homebrew for x86_64
5+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
6+
eval "$(/usr/local/bin/brew shellenv)"
7+
48
# install dependencies
59
dependencies=(
610
"boost"
@@ -12,7 +16,7 @@ dependencies=(
1216
"opus"
1317
"pkg-config"
1418
)
15-
arch -arm64 brew install "${dependencies[@]}"
19+
brew install "${dependencies[@]}"
1620

1721
# build
1822
mkdir -p build
@@ -22,8 +26,7 @@ cmake \
2226
-S . \
2327
-DBOOST_USE_STATIC=OFF \
2428
-DBUILD_DOCS=OFF \
25-
-DBUILD_WERROR=ON \
26-
-DCMAKE_TOOLCHAIN_FILE="./cmake/toolchains/Darwin-arm64.cmake"
29+
-DBUILD_WERROR=ON
2730
ninja -C build
2831

2932
# skip autobuild

cmake/toolchains/Darwin-arm64.cmake

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)