Skip to content

Commit

Permalink
fix macOS ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tihmstar committed Jul 26, 2024
1 parent 63c40d8 commit fab37b1
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ jobs:
cd $(brew --prefix openssl)
sudo mkdir -p /usr/local/lib/pkgconfig/
sudo cp -r lib/pkgconfig/* /usr/local/lib/pkgconfig/
IFS=',' read -r -a deparray <<< "$MAC_DYNAMIC_LIBS"; for d in ${deparray[@]}; do
echo "moving library $d"
cd $(brew --prefix $d)
find . -name "*.dylib" -exec mv {} {}.bak \;
done
cd $GITHUB_WORKSPACE
else
Expand Down Expand Up @@ -86,7 +80,26 @@ jobs:
- name: autogen
run: ./autogen.sh --enable-static --disable-shared
- name: make
run: make -j || make
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
IFS=',' read -r -a deparray <<< "$MAC_DYNAMIC_LIBS"; for d in ${deparray[@]}; do
echo "moving library $d"
cd $(brew --prefix $d)
find . -name "*.dylib" -exec mv {} {}.bak \;
done
cd $GITHUB_WORKSPACE
make -j || make
IFS=',' read -r -a deparray <<< "$MAC_DYNAMIC_LIBS"; for d in ${deparray[@]}; do
echo "restoring library $d"
cd $(brew --prefix $d)
find . -name "*.dylib.bak" | while read f; do o=$(echo $f | rev | cut -d '.' -f2- | rev); mv $f $o; done
done
cd $GITHUB_WORKSPACE
else
make -j || make
fi
- name: make install
run: make DESTDIR=$GITHUB_WORKSPACE/$BUILDROOT install
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit fab37b1

Please sign in to comment.