Skip to content

Run tests on github

Run tests on github #1

Workflow file for this run

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: |
sudo apt-get update && apt-get install -y \
build-essential \
cmake \
gfortran \
python3 \
python3-pip \
zlib1g-dev \
liblzma-dev \
locales \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8
- name: Install python dependencies
run: |
pip3 install cget
- name: Build
run: |
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