diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7419b1d..27478d3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,8 +18,8 @@ jobs: - name: Setup Rust with rustfmt and clippy run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - $HOME/.cargo/bin/rustup component add rustfmt clippy + source "$HOME/.cargo/env" + rustup component add rustfmt clippy - name: Build run: cargo build --release @@ -44,7 +44,7 @@ jobs: - name: Setup Rust run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile default - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + source "$HOME/.cargo/env" - name: Build release binary run: cargo build --release