-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (48 loc) · 1.48 KB
/
ci.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
name: 'CI'
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
find-latest-release:
uses: lf-lang/lingua-franca/.github/workflows/latest-release.yml@master
check-compile:
runs-on: ubuntu-latest
needs: find-latest-release
steps:
- uses: actions/checkout@v3
- name: Set up Java 17
run: |
echo "$JAVA_HOME_17_X64/bin" >> $GITHUB_PATH
echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
shell: bash
- name: Setup environment
run: bash ./utils/scripts/setup-env.bash
- name: Make environment variables persistent
run: |
source /opt/ros/*/setup.bash
printenv >> "$GITHUB_ENV"
shell: bash
- uses: lf-lang/action-check-lf-files@main
with:
check_mode: "compile"
no_compile_flag: false
exclude_dirs: '["failing", "experiments"]'
compiler_ref: "master" # ${{ needs.find-latest-release.outputs.ref }}
check-format:
runs-on: ubuntu-latest
needs: find-latest-release
steps:
- uses: actions/checkout@v3
- name: Set up Java 17
run: |
echo "$JAVA_HOME_17_X64/bin" >> $GITHUB_PATH
echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
shell: bash
- uses: lf-lang/action-check-lf-files@main
with:
check_mode: "format"
exclude_dirs: '["failing", "experiments"]'
compiler_ref: ${{ needs.find-latest-release.outputs.ref }}