-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (44 loc) · 1.2 KB
/
main.yaml
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: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Try compilation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: configure
run: |
mkdir build
cd build
cmake .. -DREACTOR_CPP_CLANG_TIDY=Off
- name: build the library
run: cmake --build build
- name: build examples
run:
cmake --build build --target examples
- name: build with tracing enabled
run: |
sudo apt-get install -y liblttng-ust-dev
cd build
cmake -DREACTOR_CPP_TRACE=ON ..
cd ..
cmake --build build --target examples
if: matrix.os == 'ubuntu-latest'
lf-tests-pull-request:
uses: lf-lang/lingua-franca/.github/workflows/cpp-tests.yml@master
with:
runtime-ref: ${{github.ref}}
if: ${{ github.event_name == 'pull_request' }}
lf-tests-push:
uses: lf-lang/lingua-franca/.github/workflows/cpp-tests.yml@master
with:
runtime-ref: ${{github.ref_name}}
if: ${{ github.event_name == 'push' }}