MacOS workflow attempt #676 #1808
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build-macOS | |
on: | |
push: | |
paths-ignore: | |
- 'doc/**' | |
- '**.md' | |
workflow_run: | |
workflows: ["clang-format"] | |
branches: [master] | |
types: | |
- completed | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Remove existing links | |
run: | | |
rm '/usr/local/bin/2to3' | |
rm '/usr/local/bin/2to3-3.11' | |
- name: Update brew | |
run: | | |
brew update | |
- name: Install gcc | |
run: | | |
brew install gcc | |
- name: debug0 | |
run: | | |
ls /opt/homebrew/Cellar/gcc/14.2.0_1/lib/gcc/14/*fortran* | |
- name: Symlink gfortran | |
run: | | |
sudo mkdir /usr/local/lib/ | |
sudo cp /opt/homebrew/Cellar/gcc/14.2.0_1/lib/gcc/14/*libgfortran* /opt/homebrew/lib/ | |
- name: debug2 | |
run: | | |
ls /opt/homebrew/lib/ | |
- name: debug3 | |
run: | | |
ls /opt/homebrew/bin/ | |
- name: Install nlohmann-json | |
run: | | |
brew install nlohmann-json | |
- name: Install googletest | |
run: | | |
brew install googletest | |
- name: Install boost | |
run: | | |
brew install sbt | |
brew install boost | |
- name: Install Simgrid | |
run: | | |
wget --no-check-certificate https://framagit.org/simgrid/simgrid/-/archive/v3.36/simgrid-v3.36.tar.gz | |
tar -xf simgrid-v3.36.tar.gz | |
cd simgrid-v3.36 | |
sed -i "s/gfortran/gfortran -L\/opt\/homebrew\/lib\//" CMakeLists.txt | |
cmake -DCMAKE_LD_FLAGS=-L/opt/homebrew/lib/ . | |
make -j4 | |
sudo make install | |
- name: Source Build and Test | |
run: | | |
# build and test wrench | |
cmake -DENABLE_BATSCHED=off -DCMAKE_VERBOSE_MAKEFILE=ON . | |
make -j4 all unit_tests | |
# Disabling one test due to WEIRD error on the macos runner ( Actual: it throws std::invalid_argument with description "WfCommonsWorkflowParser::createWorkflowFromJson(): Invalid JSON file (ios_base::clear: unspecified iostream_category error)".) | |
./unit_tests --gtest_filter="*:-WorkflowLoadFromJSONTest.LoadValidJSON" |