-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (40 loc) · 1.54 KB
/
runtests.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
name: CI
on: [pull_request, push, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: "ubuntu-latest | g++"
timeout-minutes: 60
runs-on: ubuntu-latest
env:
CXX: "ccache g++"
CXXFLAGS: "-fdiagnostics-color"
CMAKE_CXX_COMPILER: "ccache g++"
PKG_CONFIG_PATH: "/home/runner/micromamba-root/envs/HPCombi/lib/pkgconfig:/home/runner/micromamba-root/envs/HPCombi/share/pkgconfig/"
LD_LIBRARY_PATH: "/home/runner/micromamba-root/envs/HPCombi/lib"
steps:
- name: "Install conda environment from environment.yml . . ."
uses: mamba-org/setup-micromamba@v1
- name: "Checkout HPCombi repo . . ."
uses: actions/checkout@v3
- name: "Setup ccache . . ."
uses: Chocobo1/setup-ccache-action@v1
with:
update_packager_index: false
override_cache_key: ${{ runner.os }}-${{ github.ref }}
override_cache_key_fallback: ${{ runner.os }}
- name: "Install dependencies . . ."
run: |
sudo apt-get --yes update
sudo apt-get install --yes ccache
sudo apt-get install --yes libbenchmark-dev
sudo apt-get install --yes catch2
- name: "Build + run HPCombi tests . . ."
run: |
mkdir build
cd build
cmake -DBUILD_TESTING=1 -DCMAKE_BUILD_TYPE=Release ..
make
make test