From bc36f760e94786ac5651b336da742393addd037a Mon Sep 17 00:00:00 2001 From: Hong Chen Date: Thu, 15 Feb 2024 13:36:05 -0600 Subject: [PATCH] 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. --- .github/workflows/test_macos.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index d6df3509..7ac9d157 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -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