-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (41 loc) · 1.01 KB
/
gnu.yml
File metadata and controls
49 lines (41 loc) · 1.01 KB
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
43
44
45
46
47
48
49
name: GNU CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04]
gnu: [9, 10, 11, 12, 13, 14]
runs-on: ${{ matrix.os }}
env:
CC: /usr/bin/gcc-${{ matrix.gnu }}
CXX: /usr/bin/g++-${{ matrix.gnu }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
bison \
build-essential \
cmake \
flex \
g++-${{ matrix.gnu }}
- name: Build
run: |
cd $GITHUB_WORKSPACE/
mkdir build
cd build
bison -v ../src/ompparser.yy && ! cat ompparser.output | grep conflict
cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS=${CXX_FLAGS} -DCMAKE_BUILD_TYPE=Coverage -DBUILD_TESTS=ON ..
make tester
- name: Test
run: |
cd $GITHUB_WORKSPACE/build
! ../test_folder.sh ../tests | grep FAILED | grep [1-9]