From 387a996b66fb834e649ce14296737c8c01e25388 Mon Sep 17 00:00:00 2001 From: Christian Menard Date: Mon, 22 Aug 2022 14:47:26 +0200 Subject: [PATCH] CI: fix setting a specific runtime ref for Rust --- .github/workflows/rs-tests.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rs-tests.yml b/.github/workflows/rs-tests.yml index c54810b418..2681a7b3ef 100644 --- a/.github/workflows/rs-tests.yml +++ b/.github/workflows/rs-tests.yml @@ -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 @@ -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.*