From 8741fcc46f41ab5af1305aca2415874f72b5d08e Mon Sep 17 00:00:00 2001 From: Ionizing <17506747+Ionizing@users.noreply.github.com> Date: Sat, 7 Oct 2023 19:51:53 +0800 Subject: [PATCH] Update rust.yml Update CI workflows --- .github/workflows/rust.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da7ebfe..83abb51 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,14 +19,11 @@ jobs: container: centos:7 steps: - uses: actions/checkout@v2 - - name: Install Rust - run: | - yum install -y gcc g++ which - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --target x86_64-unknown-linux-musl x86_64-unknown-linux-gnu - echo $HOME/.cargo/bin >> $GITHUB_PATH - source $HOME/.cargo/env - which rustup - which cargo + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + default: true - name: Build run: cargo build --verbose --release - name: Run tests