Skip to content

Commit

Permalink
ci: update AS ci to use rustup to setup Rust
Browse files Browse the repository at this point in the history
Now actions-rs/toolchain@v1 is out of date due to
https://github.com/confidential-containers/trustee/actions/runs/9608987742/job/26502692790?pr=426

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Jun 21, 2024
1 parent d2c05f0 commit cb1f972
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/as-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,24 @@ jobs:
sudo apt-get install -y libsgx-dcap-quote-verify-dev
- name: Install Rust toolchain (${{ env.RUSTC_VERSION }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUSTC_VERSION }}
override: true
components: rustfmt, clippy
run: |
rustup update --no-self-update ${{ env.RUSTC_VERSION }}
rustup component add --toolchain ${{ env.RUSTC_VERSION }} rustfmt rustc clippy
rustup default ${{ env.RUSTC_VERSION }}
- name: Build
working-directory: attestation-service
run: |
make
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: -p attestation-service -p reference-value-provider-service -p verifier
run: |
sudo -E PATH="$PATH" -s cargo test -p attestation-service -p reference-value-provider-service -p verifier
- name: Run cargo fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -p attestation-service -p reference-value-provider-service --check
run: |
sudo -E PATH="$PATH" -s cargo fmt -p attestation-service -p reference-value-provider-service --check
- name: Run rust lint check
uses: actions-rs/cargo@v1
with:
command: clippy
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now
args: -p attestation-service -p reference-value-provider-service -- -D warnings -A clippy::derive_partial_eq_without_eq
run: |
sudo -E PATH="$PATH" -s cargo clippy -p attestation-service -p reference-value-provider-service -- -D warnings -A clippy::derive_partial_eq_without_eq

0 comments on commit cb1f972

Please sign in to comment.