Skip to content

Commit

Permalink
ci: use rustlang gh wf to install rust in cdh ci
Browse files Browse the repository at this point in the history
This will also set up build cache and is consistent with the AA
CI workflow.

drive-by fix: switched to the non-archived rust-lang gh action for AA
and ASR worflows

Signed-off-by: Magnus Kulke <[email protected]>
  • Loading branch information
mkulke committed Nov 20, 2024
1 parent ed4356d commit 60c070d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aa_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fetch-depth: 1

- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/api-server-rest-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fetch-depth: 1

- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/cdh_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ jobs:
fetch-depth: 1

- name: Install Rust toolchain (${{ matrix.rust }})
run: |
rustup update --no-self-update ${{ matrix.rust }}
rustup component add --toolchain ${{ matrix.rust }} rustfmt rustc clippy
rustup target add x86_64-unknown-linux-gnu
rustup default ${{ matrix.rust }}
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Install protoc
run: |
Expand Down

0 comments on commit 60c070d

Please sign in to comment.