From 25f4224614878c976b052b92e27c7002303a8ea5 Mon Sep 17 00:00:00 2001 From: ratankaliani Date: Tue, 17 Dec 2024 00:39:03 +0000 Subject: [PATCH] fix --- .github/workflows/compile.yaml | 2 ++ .github/workflows/cost-estimator-manual.yml | 19 ++----------------- .github/workflows/integration-tests.yml | 19 ++----------------- .github/workflows/pr.yaml | 2 +- proposer/succinct/Dockerfile | 4 ++++ 5 files changed, 11 insertions(+), 35 deletions(-) diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml index f80cd556..deae73db 100644 --- a/.github/workflows/compile.yaml +++ b/.github/workflows/compile.yaml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Setup CI + uses: ./.github/actions/setup - name: Compile the range program run: cargo build --profile release-client-lto working-directory: programs/range diff --git a/.github/workflows/cost-estimator-manual.yml b/.github/workflows/cost-estimator-manual.yml index 8bd8bfba..ab7d0023 100644 --- a/.github/workflows/cost-estimator-manual.yml +++ b/.github/workflows/cost-estimator-manual.yml @@ -18,23 +18,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: rust-cache - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - restore-keys: rust-1.81.0- - key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }} - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - name: Setup CI + uses: ./.github/actions/setup - name: Run cost estimator run: | diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 8b36498a..17d7b8d9 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -19,23 +19,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: rust-cache - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - restore-keys: rust-1.81.0- - key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }} - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - name: Setup CI + uses: ./.github/actions/setup - name: OP Sepolia cost estimator on recent block range run: | diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index c5210a9d..3a76edb2 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -33,7 +33,7 @@ jobs: uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: nightly components: rustfmt - name: Run rustfmt diff --git a/proposer/succinct/Dockerfile b/proposer/succinct/Dockerfile index 24877098..779d9d93 100644 --- a/proposer/succinct/Dockerfile +++ b/proposer/succinct/Dockerfile @@ -17,6 +17,8 @@ RUN apt-get update && apt-get install -y \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH=/root/.cargo/bin:$PATH +RUN rustup install nightly +RUN rustup default nightly # Verify Rust installation RUN rustc --version && cargo --version @@ -60,6 +62,8 @@ RUN apt-get update && apt-get install -y \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH=/root/.cargo/bin:$PATH +RUN rustup install nightly +RUN rustup default nightly # Verify Rust installation RUN rustc --version && cargo --version