diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 11a99d3..2bc9eb3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -118,6 +118,8 @@ jobs: commit: ${{ fromJSON(needs.commit_list.outputs.commits) }} env: LANDLOCK_CRATE_TEST_ABI: 1 + # $CARGO is used by landlock-test-tools/test-rust.sh + CARGO: rustup run stable cargo steps: - name: Install Rust stable run: | @@ -130,7 +132,7 @@ jobs: ref: ${{ matrix.commit }} - name: Run tests - run: rustup run stable cargo test --verbose + run: $CARGO test --verbose - name: Clone Landlock test tools uses: actions/checkout@v3 @@ -138,7 +140,7 @@ jobs: repository: landlock-lsm/landlock-test-tools path: landlock-test-tools fetch-depth: 0 - ref: ab616e087cffa4b6716ff026e589d0317e19aaa4 # v1.0.0 + ref: test - name: Run tests against Linux 5.10 run: ./landlock-test-tools/test-rust.sh linux-5.10 0