Skip to content

Commit

Permalink
Merge pull request #7 from lf-lang/ci-patch
Browse files Browse the repository at this point in the history
CI to run periodically
  • Loading branch information
lhstrh authored Jun 5, 2024
2 parents 6659755 + e48ebd6 commit 94549d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check-lf-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Check compatibility with Lingua Franca master'
on:
workflow_dispatch:
schedule:
- cron: "0 20 * * Fri"

jobs:
run-ci:
uses: ./.github/workflows/ci.yml
with:
compiler-ref: master
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- main

workflow_call:
inputs:
compiler-ref:
type: string
jobs:
find-latest-release:
uses: lf-lang/lingua-franca/.github/workflows/latest-release.yml@master
Expand All @@ -31,7 +34,7 @@ jobs:
no_compile_flag: false
exclude_dirs: '["failing", "experimental"]'
checkout_dir: '../lingua-franca'
compiler_ref: ${{ needs.find-latest-release.outputs.ref }}
compiler_ref: ${{ inputs.compiler-ref || needs.find-latest-release.outputs.ref }}

check-format:
runs-on: ubuntu-latest
Expand All @@ -48,4 +51,4 @@ jobs:
check_mode: "format"
exclude_dirs: '["failing", "experimental"]'
checkout_dir: '../lingua-franca'
compiler_ref: ${{ needs.find-latest-release.outputs.ref }}
compiler_ref: ${{ inputs.compiler-ref || needs.find-latest-release.outputs.ref }}

0 comments on commit 94549d0

Please sign in to comment.