Skip to content

Commit

Permalink
Using Warpbuild instead of BuildJet (#1860)
Browse files Browse the repository at this point in the history
BuildJet cache is broken and they won't answer support ticket.
  • Loading branch information
lvella authored Oct 2, 2024
1 parent eebbe5f commit 7b7e727
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: warp-ubuntu-latest-x64-4x

steps:
- uses: actions/checkout@v4
Expand All @@ -29,13 +29,24 @@ jobs:
run: cargo build --all-targets --all --all-features --profile pr-tests
- name: Check without Halo2
run: cargo check --all --no-default-features --profile pr-tests
- name: Delete previous cache
uses: WarpBuilds/cache@v1
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Cargo.lock
key: ${{ runner.os }}-cargo-pr-tests
delete-cache: true
- name: ⚡ Save rust cache
uses: buildjet/cache/save@v4
uses: WarpBuilds/cache/save@v1
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Cargo.lock
key: ${{ runner.os }}-cargo-pr-tests-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-pr-tests
16 changes: 6 additions & 10 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,23 @@ env:

jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2204
runs-on: warp-ubuntu-latest-x64-4x

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: ⚡ Restore rust cache
id: cache
uses: buildjet/cache/restore@v4
uses: WarpBuilds/cache/restore@v1
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Cargo.lock
key: ${{ runner.os }}-cargo-pr-tests-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-pr-tests-
key: ${{ runner.os }}-cargo-pr-tests
- name: Install Rust toolchain 1.81 (with clippy and rustfmt)
run: rustup toolchain install 1.81-x86_64-unknown-linux-gnu && rustup component add clippy --toolchain 1.81-x86_64-unknown-linux-gnu && rustup component add rustfmt --toolchain 1.81-x86_64-unknown-linux-gnu
- name: Install EStarkPolygon prover dependencies
Expand Down Expand Up @@ -105,25 +103,23 @@ jobs:
POWDR_STD: ${{ github.workspace }}/std/

run_examples:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-4x

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: ⚡ Restore rust cache
id: cache
uses: actions/cache/restore@v4
uses: WarpBuilds/cache/restore@v1
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
Cargo.lock
key: ${{ runner.os }}-cargo-pr-tests-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-pr-tests-
key: ${{ runner.os }}-cargo-pr-tests
- name: Install Rust toolchain 1.81 (with clippy and rustfmt)
run: rustup toolchain install 1.81-x86_64-unknown-linux-gnu && rustup component add clippy --toolchain 1.81-x86_64-unknown-linux-gnu && rustup component add rustfmt --toolchain 1.81-x86_64-unknown-linux-gnu
- name: Run examples
Expand Down

0 comments on commit 7b7e727

Please sign in to comment.