-
Notifications
You must be signed in to change notification settings - Fork 138
88 lines (76 loc) · 2.61 KB
/
tests.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
on: [push, pull_request]
jobs:
run-tests-mac:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: Homebrew/actions/setup-homebrew@master
- name: Install dependencies
run: brew install cmake zlib boost googletest jsoncpp re2
- name: Install Redex
run: |
git clone https://github.com/facebook/redex.git
cd redex
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(sysctl -n hw.ncpu)
make install
cd ../..
- name: Install fmt
run: |
git clone https://github.com/fmtlib/fmt.git
cd fmt
git checkout 9.1.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(sysctl -n hw.ncpu)
make install
cd ../..
- name: Build and Test Mariana Trench
run: |
mkdir build
cd build
cmake -DREDEX_ROOT="../redex/install" -Dfmt_ROOT="../fmt/install" -DFMT_DEPRECATED_OSTREAM=ON -DEXCLUDE_INTEGRATION_TESTS="check_cast_types" -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(sysctl -n hw.ncpu)
make install
make check -j$(sysctl -n hw.ncpu)
run-tests-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: Homebrew/actions/setup-homebrew@master
- name: Install dependencies
run: |
brew install cmake zlib boost googletest jsoncpp re2 git
sudo apt update
sudo apt install default-jre default-jdk
- name: Install fmt
run: |
git clone https://github.com/fmtlib/fmt.git
cd fmt
git checkout 9.1.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(nproc)
make install
cd ../..
- name: Install Redex and build and test Mariana Trench
run: |
export CMAKE_PREFIX_PATH=/home/linuxbrew/.linuxbrew/opt/jsoncpp:/home/linuxbrew/.linuxbrew/opt/zlib
git clone https://github.com/facebook/redex.git
cd redex
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(nproc)
make install
cd ../..
mkdir build
cd build
cmake -DREDEX_ROOT="../redex/install" -Dfmt_ROOT="../fmt/install" -DFMT_DEPRECATED_OSTREAM=ON -DEXCLUDE_INTEGRATION_TESTS="check_cast_types" -DCMAKE_INSTALL_PREFIX="../install" ..
make -j$(nproc)
make install
make check -j$(nproc)