-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.52 KB
/
linux-build.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
name: Linux Build
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: g++ --version
- run: cmake --version
# before install
- run: sudo apt-get update -qq
- name: Install bats testing suite
run: sudo apt-get install -y bats
- name: Install ZeroMQ
run: sudo apt-get install -y libzmq3-dev libzmq5
- name: Install Boost
run: sudo apt-get install -y libboost-all-dev
- name: Install yaml-cpp
run: sudo apt-get install -y libyaml-cpp-dev
- name: Install libcURL
run: sudo apt-get install -y libcurl4-gnutls-dev
- name: Install libarchive (to avoid compiling it)
run: sudo apt-get install -y libarchive-dev
- name: Install libcap for isolate
run: sudo apt-get install -y libcap-dev
# install isolate
- run: git clone https://github.com/ReCodEx/isolate
- run: make isolate
working-directory: isolate
- run: sudo make install
working-directory: isolate
- run: rm -rf isolate
# script
- run: mkdir build
- run: cmake ..
working-directory: build
- run: make -j 4
working-directory: build
- run: ctest --output-on-failure
working-directory: build
- run: bats ../../../judges/recodex_token_judge/tests
working-directory: build/judges/recodex_token_judge
# after success
- uses: codecov/codecov-action@v1