Skip to content

Commit b80c7d1

Browse files
committed
ci: Update macOS CI config.
1 parent 8d5629a commit b80c7d1

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

.github/workflows/macosx-ci.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,14 @@ jobs:
4040
run: brew update-reset
4141
- name: Brew update
4242
run: brew update
43-
- name: Install clang / LLVM 15.0.0
44-
run: |
45-
set -x
46-
brew install --force wget
47-
mkdir -p /tmp/clang
48-
cd /tmp/clang
49-
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.0/clang+llvm-15.0.0-x86_64-apple-darwin.tar.xz -O clang-15.0.0.tar.xz
50-
ls
51-
tar -xvf clang-15.0.0.tar.xz -C ~
52-
cd ~
53-
mv clang+llvm-15.0.0-x86_64-apple-darwin clang-15.0.0
54-
~/clang-15.0.0/bin/clang++ --version
5543
- name: Brew install DeJaVu fonts
5644
run: brew install --cask font-dejavu
57-
- name: Remove python's 2to3 link so that 'brew link' does not fail
58-
run: rm /usr/local/bin/2to3* && rm /usr/local/bin/idle3*
5945
- name: Install environment helpers with homebrew
6046
run: brew install --force ccache
61-
- name: Install dependencies with homebrew
62-
run: brew install --force libepoxy freetype fontconfig harfbuzz opus opusfile qt6 libogg libpng toml11 eigen
47+
- name: Install LLVM with homebrew
48+
run: brew install --force llvm
49+
- name: Install openage dependencies with homebrew
50+
run: brew install --force cmake python3 libepoxy freetype fontconfig harfbuzz opus opusfile qt6 libogg libpng toml11 eigen
6351
- name: Install nyan dependencies with homebrew
6452
run: brew install --force flex make
6553
- name: Install python3 packages
@@ -68,9 +56,7 @@ jobs:
6856
# numpy pulls gcc as dep? and pygments doesn't work.
6957
run: pip3 install --upgrade --break-system-packages cython numpy mako lz4 pillow pygments setuptools toml
7058
- name: Configure
71-
run: |
72-
CLANG_PATH="$HOME/clang-15.0.0/bin/clang++"
73-
./configure --compiler="$CLANG_PATH" --mode=debug --ccache --download-nyan
59+
run: ./configure --compiler="$(brew --prefix llvm)/bin/clang" --mode=release --ccache --download-nyan
7460
- name: Build
7561
run: make -j$(sysctl -n hw.logicalcpu) VERBOSE=1
7662
- name: Test

doc/build_instructions/macos.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ We advise against using the clang version that comes with macOS (Apple Clang) as
3838
```
3939
# on Intel macOS, llvm is by default in /usr/local/Cellar/llvm/bin/
4040
# on ARM macOS, llvm is by default in /opt/homebrew/Cellar/llvm/bin/
41-
CLANG_PATH="<homebrew llvm install path>/bin/clang++"
42-
./configure --compiler="$CLANG_PATH" --download-nyan
41+
./configure --compiler="$(brew --prefix llvm)/bin/clang"" --download-nyan
4342
```
4443

4544
Afterwards, trigger the build using `make`:

0 commit comments

Comments
 (0)