Skip to content

Commit

Permalink
gha/homebrew: Bump Python to 3.12 and fix builds
Browse files Browse the repository at this point in the history
Install SIP using pip instead of brew.

Reactivate macos-14 job.
  • Loading branch information
anlambert committed May 23, 2024
1 parent 1c22b93 commit db7e179
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/macos-homebrew-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
config:
- name: Talipot build on macOS 12 (x86_64)
os: macos-12
pyver: "3.11"
pyver: "3.12"
homebrew_path: /usr/local
# - name: Talipot build on macOS 14 (arm64)
# os: macos-14
# pyver: "3.11"
# homebrew_path: /opt/homebrew
- name: Talipot build on macOS 14 (arm64)
os: macos-14
pyver: "3.12"
homebrew_path: /opt/homebrew
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
Expand All @@ -34,7 +34,6 @@ jobs:
graphviz
libgit2
python@${{ matrix.config.pyver }}
sip
cppunit
pkg-config
glew
Expand All @@ -43,6 +42,8 @@ jobs:
fontconfig
qt6
quazip || brew link --overwrite python@${{ matrix.config.pyver }}
- name: Install SIP
run: pip${{ matrix.config.pyver }} install sip --break-system-packages
- name: Prepare ccache timestamp
id: get-current-date
run: |
Expand All @@ -69,7 +70,7 @@ jobs:
-DCMAKE_EXE_LINKER_FLAGS="-L${{ matrix.config.homebrew_path }}/opt/llvm/lib/c++
-Wl,-rpath,${{ matrix.config.homebrew_path }}/opt/llvm/lib/c++"
-DCMAKE_RANLIB=/usr/bin/ranlib
-DPython3_EXECUTABLE=${{ matrix.config.homebrew_path }}/opt/python@${{ matrix.config.pyver }}/bin/python${{ matrix.config.pyver }}
-DPython3_EXECUTABLE=${{ matrix.config.homebrew_path }}/bin/python${{ matrix.config.pyver }}
-DTALIPOT_BUILD_CORE_ONLY=ON
-DTALIPOT_BUILD_TESTS=ON
-DTALIPOT_BUILD_DOC=OFF
Expand Down

0 comments on commit db7e179

Please sign in to comment.