-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (40 loc) · 1.05 KB
/
main.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
---
# configuration for GitHub Actions
name: gr1c tests
on:
push:
pull_request:
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-22.04
strategy:
matrix:
cc: ['gcc', 'clang']
env:
CC: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v4
- name: Install APT packages
run: |
sudo apt update
sudo apt install \
build-essential \
graphviz \
${{ matrix.cc }}
- name: Display versions
run: |
${{ matrix.cc }} --version
bison --version
flex --version
- name: Build dependencies
run: |
./get-deps.sh
./get-extra-deps.sh
./build-deps.sh
- name: Build gr1c
run: |
make -e all
- name: Run tests
run: |
VERBOSE=1 make -e check