Skip to content

Commit ed71bf1

Browse files
committed
ci: use swig 4.3.1 for macos x cmake x python workflows (#4924)
1 parent e3d0020 commit ed71bf1

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/amd64_macos_cmake_python.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- uses: actions/checkout@v6
4545
- name: Install Dependencies
4646
run: |
47-
brew install ccache swig
48-
swig -version
47+
brew install ccache
4948
- name: Setup Python
5049
uses: actions/setup-python@v6
5150
with:
@@ -54,6 +53,15 @@ jobs:
5453
run: |
5554
echo "$HOME/Library/Python/${{matrix.python.version}}/bin" >> $GITHUB_PATH
5655
echo "$HOME/.local/bin" >> $GITHUB_PATH
56+
# can't use brew swig (4.4) since Director python support is broken on macos
57+
# see: https://github.com/swig/swig/issues/3279
58+
- name: Install SWIG
59+
run: |
60+
wget -q https://downloads.sourceforge.net/project/swig/swig/swig-4.3.1/swig-4.3.1.tar.gz && tar xzvf swig-4.3.1.tar.gz && rm swig-4.3.1.tar.gz
61+
cd swig-4.3.1 && ./configure --prefix=$HOME/.local && make -j 4 && make install
62+
rm -rf swig-4.3.1
63+
- name: Check SWIG
64+
run: swig -version
5765

5866
# RESTORING CACHES
5967
- name: Restore CMake dependency source code

.github/workflows/arm64_macos_cmake_python.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- uses: actions/checkout@v6
4545
- name: Install Dependencies
4646
run: |
47-
brew install ccache swig
48-
swig -version
47+
brew install ccache
4948
- name: Setup Python
5049
uses: actions/setup-python@v6
5150
with:
@@ -54,6 +53,15 @@ jobs:
5453
run: |
5554
echo "$HOME/Library/Python/${{matrix.python.version}}/bin" >> $GITHUB_PATH
5655
echo "$HOME/.local/bin" >> $GITHUB_PATH
56+
# can't use brew swig (4.4) since Director python support is broken on macos
57+
# see: https://github.com/swig/swig/issues/3279
58+
- name: Install SWIG
59+
run: |
60+
wget -q https://downloads.sourceforge.net/project/swig/swig/swig-4.3.1/swig-4.3.1.tar.gz && tar xzvf swig-4.3.1.tar.gz && rm swig-4.3.1.tar.gz
61+
cd swig-4.3.1 && ./configure --prefix=$HOME/.local && make -j 4 && make install
62+
rm -rf swig-4.3.1
63+
- name: Check SWIG
64+
run: swig -version
5765

5866
# RESTORING CACHES
5967
- name: Restore CMake dependency source code

0 commit comments

Comments
 (0)