Fix CI for macOS
This commit is contained in:
+14
-24
@@ -173,16 +173,10 @@ jobs:
|
|||||||
- name: Check commit
|
- name: Check commit
|
||||||
run: |
|
run: |
|
||||||
git log -1
|
git log -1
|
||||||
- name: Update OS
|
|
||||||
run: |
|
|
||||||
brew uninstall --ignore-dependencies gcc
|
|
||||||
brew update
|
|
||||||
softwareupdate --install --all
|
|
||||||
- name: Install brew dependencies
|
- name: Install brew dependencies
|
||||||
run: |
|
run: |
|
||||||
brew list --formula -1 | while read line; do brew unlink $line; done
|
brew reinstall gcc # brings gfortran on path
|
||||||
brew install gcc cmake mpich
|
brew install cmake mpich
|
||||||
brew list --formula -1 | while read line; do brew link --overwrite $line; done
|
|
||||||
- name: Run job
|
- name: Run job
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -208,16 +202,18 @@ jobs:
|
|||||||
- name: Check commit
|
- name: Check commit
|
||||||
run: |
|
run: |
|
||||||
git log -1
|
git log -1
|
||||||
- name: Update OS
|
|
||||||
run: |
|
|
||||||
brew uninstall --ignore-dependencies gcc
|
|
||||||
brew update
|
|
||||||
softwareupdate --install --all
|
|
||||||
- name: Install brew dependencies
|
- name: Install brew dependencies
|
||||||
run: |
|
run: |
|
||||||
brew list --formula -1 | while read line; do brew unlink $line; done
|
# Unlink and re-link to prevent errors when github mac runner images
|
||||||
brew install gcc cmake boost-python3 eigen python3
|
# install python outside of brew, for example:
|
||||||
brew list --formula -1 | while read line; do brew link --overwrite $line; done
|
# https://github.com/orgs/Homebrew/discussions/3895
|
||||||
|
# https://github.com/actions/setup-python/issues/577
|
||||||
|
# https://github.com/actions/runner-images/issues/6459
|
||||||
|
# https://github.com/actions/runner-images/issues/6507
|
||||||
|
# https://github.com/actions/runner-images/issues/2322
|
||||||
|
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
|
||||||
|
brew reinstall gcc # brings gfortran on path
|
||||||
|
brew install cmake eigen boost-python3 python3
|
||||||
pip3 install numpy
|
pip3 install numpy
|
||||||
- name: Run job
|
- name: Run job
|
||||||
run: |
|
run: |
|
||||||
@@ -244,16 +240,10 @@ jobs:
|
|||||||
- name: Check commit
|
- name: Check commit
|
||||||
run: |
|
run: |
|
||||||
git log -1
|
git log -1
|
||||||
- name: Update OS
|
|
||||||
run: |
|
|
||||||
brew uninstall --ignore-dependencies gcc
|
|
||||||
brew update
|
|
||||||
softwareupdate --install --all
|
|
||||||
- name: Install brew dependencies
|
- name: Install brew dependencies
|
||||||
run: |
|
run: |
|
||||||
brew list --formula -1 | while read line; do brew unlink $line; done
|
brew reinstall gcc # brings gfortran on path
|
||||||
brew install gcc autoconf automake libtool pkg-config mpich
|
brew install autoconf automake libtool pkg-config mpich
|
||||||
brew list --formula -1 | while read line; do brew link --overwrite $line; done
|
|
||||||
- name: Run job
|
- name: Run job
|
||||||
run: |
|
run: |
|
||||||
./bootstrap
|
./bootstrap
|
||||||
|
|||||||
Reference in New Issue
Block a user