Skip to content

Commit

Permalink
Update MacOS workflow to use SWIG 4.1.1 instead of the newest SWIG 4.2 (
Browse files Browse the repository at this point in the history
#1648)

* Updated to use SWIG 4.1.1 due to SWIG 2.0 generats setter wrapper for private constructor or operator.

* Needed to go to unzipped swig-4.1.1 directory before building it.

* Install needed  packages for being able to run SWIG 4.1.1 build script.
  • Loading branch information
hchen99 authored Feb 15, 2024
1 parent bfb6419 commit bc36f76
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ jobs:
run: |
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
brew install --cask xquartz
brew install swig udunits openmotif maven
brew install udunits openmotif maven
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz
tar -xvf clang+llvm-14.0.6-x86_64-apple-darwin.tar.xz
brew install autoconf automake libtool
wget https://github.com/swig/swig/archive/refs/tags/v4.1.1.tar.gz
tar -xvzf v4.1.1.tar.gz
cd swig-4.1.1
./autogen.sh
./configure
make
make install
cd ..
- name: Build Trick
run: |
export MAKEFLAGS=-j4
Expand Down

0 comments on commit bc36f76

Please sign in to comment.