Skip to content

Commit

Permalink
chore(ci): remove actions-rs/cargo actions as not supported from 2021…
Browse files Browse the repository at this point in the history
… in favor of running cargo command directly
  • Loading branch information
KSDaemon committed Jul 1, 2024
1 parent a1d1bab commit 678c938
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/rust-cubestore-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,24 @@ 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 }}
SERVICE_ACCOUNT_JSON: ${{ secrets.SERVICE_ACCOUNT_JSON }}
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
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/rust-cubestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 678c938

Please sign in to comment.