-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (35 loc) · 908 Bytes
/
ci.yml
File metadata and controls
41 lines (35 loc) · 908 Bytes
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
name: linux (OMP_NUM_THREADS=${{ matrix.omp_threads }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
omp_threads: [1, 8]
env:
OMP_NUM_THREADS: ${{ matrix.omp_threads }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake libtool guile-3.0-dev
- name: Build and test
run: |
sh autogen.sh --prefix=$PWD/.local --enable-openmp
make
make check
make install
- name: Print test logs on failure
if: failure()
run: |
for log in utils/*.log; do
[ -f "$log" ] && { echo "=== $log ==="; cat "$log"; }
done