Skip to content

Commit

Permalink
Update CI (taikoxyz#60)
Browse files Browse the repository at this point in the history
* Update and fix CI

* fix cargo-install version

* try without cache

* Revert "try without cache"

This reverts commit d91547ab1697989050cfdfce35229e8899b0b27f.

* add GITHUB_TOKEN

* review suggestions

* make version env
  • Loading branch information
Wollac authored and CeciliaZ030 committed Feb 4, 2024
1 parent 43c5398 commit ea66d72
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RISC0_VERSION: 0.19.1
RISC0_TOOLCHAIN_VERSION: test-release-2

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -18,36 +21,37 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
# - run: cargo install cargo-risczero && cargo risczero install
- run: cargo test --workspace --all-targets --all-features --exclude sgx-ra
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/cargo-install@v1
with:
crate: cargo-binstall
- run: cargo binstall -y --force cargo-risczero@${{ env.RISC0_VERSION }}
- run: cargo risczero install --version $RISC0_TOOLCHAIN_VERSION
- run: cargo test --workspace --all-targets --all-features

clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/clippy-action@main
with:
reporter: "github-pr-check"
fail_on_error: true
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --workspace --all-targets --all-features -- -Dwarnings
- uses: actions/checkout@v4
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/clippy-action@main
with:
reporter: 'github-pr-check'
fail_on_error: true
clippy_flags: --workspace --all-targets --all-features -- -Dwarnings

fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: risc0/risc0/.github/actions/rustup@release-0.18
- run: cargo fmt --all --check
- uses: actions/checkout@v4
- uses: risc0/risc0/.github/actions/rustup@release-0.19
- run: cargo fmt --all --check

0 comments on commit ea66d72

Please sign in to comment.