-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.07 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
name: Tests
on: [push, pull_request]
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
jobs:
tests:
runs-on: "ubuntu-20.04"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install required Ubuntu packages
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
gfortran \
python3 \
python3-pip \
zlib1g-dev \
liblzma-dev \
locales
sudo locale-gen en_US.UTF-8
- name: Install python dependencies
run: |
pip3 install cget
cget install -f requirements.txt
- name: Build
run: |
set -euxo pipefail
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake -DBUILD_TESTS=1 ..
core_count=$(nproc)
make -j ${core_count}
cd ..
make -j ${core_count} test
build/raremetal/tests/bin/tests-raremetal