diff --git a/.gitea/workflows/rust.yaml b/.gitea/workflows/rust.yaml index 1d8cace..656d653 100644 --- a/.gitea/workflows/rust.yaml +++ b/.gitea/workflows/rust.yaml @@ -18,7 +18,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: curl https://sh.rustup.rs -sSf | sh -s -- -y - - run: ./home/$(whoami)/.local/share/cargo/bin/rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: ./home/$(whoami)/.local/share/cargo/bin/cargo build --verbose - - run: ./home/$(whoami)/.local/share/cargo/bin/cargo build test --verbose + + - run: . "$HOME/.cargo/env"; rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: . "$HOME/.cargo/env"; cargo build --verbose + - run: . "$HOME/.cargo/env"; cargo build test --verbose