diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfd4e1a17..7e0939225 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -317,7 +317,9 @@ jobs: - name: Setup rust run: | + echo $HOME curl https://sh.rustup.rs | sh -s -- -y + . "$HOME/.cargo/env" cargo install cargo-component if: steps.metadata.outputs.module == 'wasm-wasi-component' @@ -357,6 +359,12 @@ jobs: - name: Run ${{ steps.metadata.outputs.module }} tests run: | + sudo -E echo $HOME + sudo -E echo $PATH + sudo -E /home/runner/.cargo/bin/cargo -V + sudo -E export PATH=/home/runner/.cargo/bin:$PATH + sudo -E which cargo + sudo -E cargo component -V sudo -E pytest --print-log ${{ steps.metadata.outputs.testpath }} # Skip pytest if wasm build, as there are no tests yet if: steps.metadata.outputs.module != 'wasm'