Skip to content

Commit

Permalink
Run tests on github
Browse files Browse the repository at this point in the history
  • Loading branch information
welchr committed May 13, 2024
1 parent 2006b75 commit 13bcf66
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 ..
build/raremetal/tests/bin/tests-raremetal

0 comments on commit 13bcf66

Please sign in to comment.