forked from lf-lang/lingua-franca
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 1.88 KB
/
c-arduino-tests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: C Arduino tests
on:
workflow_call:
inputs:
compiler-ref:
required: false
type: string
runtime-ref:
required: false
type: string
use-cpp:
required: false
type: boolean
default: false
scheduler:
required: false
type: string
jobs:
run:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out lingua-franca repository
uses: actions/checkout@v3
with:
repository: lf-lang/lingua-franca
submodules: true
ref: ${{ inputs.compiler-ref }}
fetch-depth: 0
- name: Prepare build environment
uses: ./.github/actions/prepare-build-env
- name: Check out specific ref of reactor-c
uses: actions/checkout@v3
with:
repository: lf-lang/reactor-c
path: org.lflang/src/lib/c/reactor-c
ref: ${{ inputs.runtime-ref }}
if: ${{ inputs.runtime-ref }}
- name: Install dependencies OS X
run: |
brew install coreutils
brew install openssl
brew link openssl --force
if: ${{ runner.os == 'macOS' }}
- name: Install RTI
uses: ./.github/actions/install-rti
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Install Arduino Core Libraries
run: |
arduino-cli core install arduino:avr
arduino-cli core install arduino:megaavr
arduino-cli core install arduino:samd
arduino-cli core install arduino:sam
arduino-cli core install arduino:mbed
- name: Perform Arduino tests for C target with default scheduler
run: ./gradlew test --tests org.lflang.tests.runtime.CArduinoTest.runArduinoTests