From 678c938363d458e207c410e76024d063631e6847 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Thu, 27 Jun 2024 14:15:35 +0300 Subject: [PATCH] chore(ci): remove actions-rs/cargo actions as not supported from 2021 in favor of running cargo command directly --- .github/workflows/rust-cubestore-master.yml | 24 +++++++-------------- .github/workflows/rust-cubestore.yml | 24 +++++++-------------- 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/.github/workflows/rust-cubestore-master.yml b/.github/workflows/rust-cubestore-master.yml index ce5c0bb9f513a..333bf6f0e0192 100644 --- a/.github/workflows/rust-cubestore-master.yml +++ b/.github/workflows/rust-cubestore-master.yml @@ -51,22 +51,15 @@ jobs: shared-key: cubestore key: ubuntu-22.04 - name: Run cargo fmt cubestore - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check + run: | + cargo fmt --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check - name: Run cargo fmt cubehll - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check + run: | + cargo fmt --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check - name: Run cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --manifest-path rust/cubestore/Cargo.toml -j 4 + run: + cargo build --manifest-path rust/cubestore/Cargo.toml -j 4 - name: Run cargo test - uses: actions-rs/cargo@v1 env: CUBESTORE_AWS_ACCESS_KEY_ID: ${{ secrets.CUBESTORE_AWS_ACCESS_KEY_ID }} CUBESTORE_AWS_SECRET_ACCESS_KEY: ${{ secrets.CUBESTORE_AWS_SECRET_ACCESS_KEY }} @@ -74,9 +67,8 @@ jobs: TEST_KSQL_USER: ${{ secrets.TEST_KSQL_USER }} TEST_KSQL_PASS: ${{ secrets.TEST_KSQL_PASS }} TEST_KSQL_URL: ${{ secrets.TEST_KSQL_URL }} - with: - command: test - args: --manifest-path rust/cubestore/Cargo.toml -j 1 + run: | + cargo test --manifest-path rust/cubestore/Cargo.toml -j 1 cubestore-docker-image-dev: name: Release Cube Store :dev image diff --git a/.github/workflows/rust-cubestore.yml b/.github/workflows/rust-cubestore.yml index d21eeeb57bdce..5557355d8295b 100644 --- a/.github/workflows/rust-cubestore.yml +++ b/.github/workflows/rust-cubestore.yml @@ -57,25 +57,17 @@ jobs: shared-key: cubestore-testing key: ubuntu-22.04 - name: Run cargo fmt cubestore - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check + run: | + cargo fmt --manifest-path rust/cubestore/cubestore/Cargo.toml -- --check - name: Run cargo fmt cubehll - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check + run: | + cargo fmt --manifest-path rust/cubestore/cubehll/Cargo.toml -- --check - name: Run cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --manifest-path rust/cubestore/Cargo.toml -j 4 + run: | + cargo build --manifest-path rust/cubestore/Cargo.toml -j 4 - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --manifest-path rust/cubestore/Cargo.toml -j 1 + run: | + cargo test --manifest-path rust/cubestore/Cargo.toml -j 1 docker-image-latest: name: Build only :latest image