Skip to content

Commit

Permalink
CI: fix setting a specific runtime ref for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Aug 22, 2022
1 parent fd9c374 commit 06a9776
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/rs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
ref: ${{ inputs.compiler-ref }}
- name: Prepare build environment
uses: ./.github/actions/prepare-build-env
- name: Check out specific ref of reactor-rs
uses: actions/checkout@v3
with:
repository: lf-lang/reactor-rs
path: org.lflang/src/lib/rs/reactor-rs
ref: ${{ inputs.runtime-ref }}
if: ${{ inputs.runtime-ref }}
- name: Setup Rust
id: rustup
uses: ATiltedTree/setup-rust@v1
Expand All @@ -42,10 +49,6 @@ jobs:
with:
rust-version: ${{ matrix.rust }}
components: clippy
- name: Set rust runtime version
run: |
echo ${{ inputs.runtime-ref }} > org.lflang/src/org/lflang/generator/rust/rust-runtime-version.txt
if: ${{ inputs.runtime-ref }}
- name: Run Rust tests
run: |
./gradlew test --tests org.lflang.tests.runtime.RustTest.*
Expand Down

0 comments on commit 06a9776

Please sign in to comment.