Skip to content

Commit f1a4084

Browse files
committed
fixed macos build
1 parent fb6ea37 commit f1a4084

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

.github/workflows/macos.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,36 @@ jobs:
5050
steps:
5151
- name: checkout
5252
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
53-
- name: install Conan
53+
- name: Delete old build tools installed using Homebrew
5454
run: |
55-
brew install conan
56-
- name: install Ninja
57-
if: matrix.generator == 'Ninja'
58-
run: brew install ninja
59-
- name: install python
55+
brew uninstall --force \
56+
cmake \
57+
conan
58+
59+
- name: Install build tools using Homebrew
6060
run: |
61-
if which python > /dev/null 2>&1; then
62-
echo "Python executable exists"
63-
else
64-
brew install [email protected]
65-
ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python
66-
fi
67-
- name: install cmake
61+
brew install --quiet \
62+
ca-certificates \
63+
ninja \
64+
nproc \
65+
python@3.14
66+
67+
- name: Remove old fmt using Homebrew
6868
run: |
69-
if which cmake > /dev/null 2>&1; then
70-
echo "cmake executable exists"
71-
else
72-
brew install cmake
73-
fi
74-
- name: install nproc
69+
brew unlink fmt
70+
brew cleanup
71+
brew link fmt
72+
73+
- name: List software installed using Homebrew
74+
run: brew list --version
75+
76+
- name: Install build tools using pip
77+
shell: bash
7578
run: |
76-
brew install coreutils
79+
pip3 install --break-system-packages --upgrade pip
80+
pip3 install --break-system-packages \
81+
cmake==4.1.2 \
82+
conan==2.22.1
7783
- name: check environment
7884
run: |
7985
env | sort

0 commit comments

Comments
 (0)