-
-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (43 loc) · 921 Bytes
/
ubuntu_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
---
name: Ubuntu
on:
pull_request:
push:
branches:
- master
jobs:
tests:
env:
COLORTERM: truecolor
NPROC: 2
TERM: xterm
name: 🐧 build, test, & install
runs-on: ubuntu-latest
steps:
- name: Install tools and libraries via APT
run: |
sudo apt update
sudo apt install -y \
build-essential \
cmake \
nettle-dev \
libatasmart-dev \
libnotcurses-dev
- uses: actions/checkout@v2
- name: cmake
run: |
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release
- name: make
run: |
cd build
make -j${NPROC}
- name: ctest
run: |
cd build
ctest --output-on-failure
- name: make install
run: |
cd build
sudo make install