-
Notifications
You must be signed in to change notification settings - Fork 19
executable file
·66 lines (63 loc) · 2.02 KB
/
build-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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/lib/gcc/14/
- 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./" CMakeLists.txt
mkdir build
cd build
cmake -CMAKE_CXX_COMPILER=/opt/homebrew/bin/gcc ..
cp /opt/homebrew/lib/gcc/14/*libgfortran* .
ls
echo "DYLD_LIBRARY_PATH=$(echo $DYLD_LIBRARY_PATH:.)" >> $GITHUB_ENV
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"