From d8b5b02ab1a43554cdaec874ac06e5aa4862fb22 Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov <118372045+ArtemIsmagilov@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:56:33 +0400 Subject: [PATCH] continue to use rust preinstalled (#81) * continue to use rust preinstalled * add cargo, forgot. --- .github/workflows/compile_and_test.yml | 5 +---- .github/workflows/publish.yml | 11 +---------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/compile_and_test.yml b/.github/workflows/compile_and_test.yml index ef86592..b15cf9b 100644 --- a/.github/workflows/compile_and_test.yml +++ b/.github/workflows/compile_and_test.yml @@ -46,7 +46,4 @@ jobs: cd /home/runner/work/rustis/rustis/redis/ sh ./docker_up.sh - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --features pool,tokio-tls,redis-stack + run: cargo test --features pool,tokio-tls,redis-stack diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 00adbed..07c8af0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,19 +11,10 @@ jobs: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse steps: - name: Checkout sources - uses: actions/checkout@v3 - - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - + uses: actions/checkout@v4 - name: Update version run: | VERSION=${{github.ref_name}} sed -i -e 's/^version = .*/version = "'$VERSION'"/' Cargo.toml - - name: Publish crate run: cargo publish --allow-dirty --token ${{secrets.CRATES_IO_API_TOKEN}}