Update MacOS workflow to use SWIG 4.1.1 instead of the newest SWIG 4.2 (#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.
This commit is contained in:
Hong Chen 2024-02-15 13:36:05 -06:00 committed by GitHub
parent bfb6419637
commit bc36f760e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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