Skip to content

Try 3

Try 3 #3

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: |
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
- 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