forked from simongog/sdsl-lite
-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (53 loc) · 1.48 KB
/
main.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
name: sdsl-lite C++ CI
on: [push]
jobs:
build-linux-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run: git submodule update --init --recursive
- name: install dependencies
run: |
sudo apt-get install g++-9
- name: install sdsl-lite
run: |
export CC=$(which gcc-9)
export CXX=$(which g++-9)
./install.sh $(pwd)
- name: test sdsl-lite
run: |
export CC=$(which gcc-9)
export CXX=$(which g++-9)
mkdir -p build && cd build && make test-sdsl
build-linux-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run: git submodule update --init --recursive
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: install sdsl-lite
run: |
export CC=$(which clang)
export CXX=$(which clang++)
./install.sh $(pwd)
- name: test sdsl-lite
run: |
export CC=$(which clang)
export CXX=$(which clang++)
mkdir -p build && cd build && make test-sdsl
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: checkout submodules
run: git submodule update --init --recursive
- name: install sdsl-lite
run: ./install.sh $(pwd)
- name: test sdsl-lite
run: mkdir -p build && cd build && make test-sdsl