Skip to content

REST API Fix

REST API Fix #1676

Workflow file for this run

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: Install nlohmann-json
run: |
brew install nlohmann-json
#wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.tar.gz
#tar -xzf v3.11.3.tar.gz
#cd json-3.11.3
#mkdir build
#cd build
#cmake ..
#make -j4
#sudo make install
- name: Install googletest
run: |
brew install googletest
# - name: Install Python
# run: |
# brew install python
# - name: Fix fortran
# run: |
# ls /opt/homebrew/bin/*gfortran*
# ls /opt/homebrew/lib/*gfortran*
# ls /usr/local/lib/*gfortran*
- name: Install boost
run: |
brew install sbt
brew install boost
- name: Install Simgrid
run: |
git clone https://framagit.org/simgrid/simgrid.git
cd simgrid
git checkout 98331a543f36f7991a92affa966a8f162c240984
cmake .
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"