forked from niklasso/minisat
-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (53 loc) · 1.52 KB
/
build-and-test.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
name: Build and Test on Linux and Mac OS
on:
pull_request:
branches:
- '**'
jobs:
CrossARM:
runs-on: ubuntu-20.04
steps:
- name: Update Dependencies
run: sudo apt-get update
- name: Install Packages
run: sudo apt-get install -y zlib1g-dev make cmake gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
- uses: actions/checkout@v1
- name: mergesat build
run: make BUILD_TYPE=parallel d r p sh lr ld lp lsh -j $(nproc) CXX=arm-linux-gnueabi-g++
Linux:
runs-on: ubuntu-18.04
steps:
- name: Install Packages
run: sudo apt-get install zlib1g-dev make cmake picosat
- uses: actions/checkout@v1
- name: mergesat build
run: make d r p sh lr ld lp lsh
- name: Check working help output
run: ./build/release/bin/mergesat --help
- name: run CI script
env:
RUNOPENWBO: 0
run: ./tools/ci.sh
MacOS:
runs-on: macos-latest
steps:
- name: Install Packages
run: brew install libzip
- uses: actions/checkout@v1
- name: mergesat build
run: make BUILD_TYPE=simp d r sh lr ld lsh
WebAssembly:
runs-on: ubuntu-20.04
steps:
- name: Install Packages
run: sudo apt-get install make
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: emsdk-cache
key: emsdk-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v9
with:
actions-cache-folder: emsdk-cache
- name: mergesat build
run: make BUILD_TYPE=simp CXX=em++ lr ld lp