Skip to content

Commit

Permalink
check format and compilation in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Mar 11, 2024
1 parent 15124cb commit 7f5dd9c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,37 @@ jobs:
with:
target: 'TS'

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
- uses: lf-lang/action-check-lf-files@main
with:
check_mode: "compile"
no_compile_flag: false
compiler_ref: ${{ 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"
compiler_ref: ${{ needs.find-latest-release.outputs.ref }}

0 comments on commit 7f5dd9c

Please sign in to comment.