diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3149d57420..433de66a97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,8 @@ jobs: run: | cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' - linux-arm: + # 4 vCPU, 16 GB RAM, $0.008/min + linux-buildjet-small: runs-on: buildjet-4vcpu-ubuntu-2204 env: RUSTFLAGS: -D warnings @@ -65,6 +66,105 @@ jobs: - name: Linux Tests run: | cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' + + # 8 vCPU, 32 GB RAM, $0.016/min + linux-buildjet-medium: + runs-on: buildjet-8vcpu-ubuntu-2204 + env: + RUSTFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Linux Tests + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' + + # 16 vCPU, 64 GB RAM, $0.032/min + linux-buildjet-large: + runs-on: buildjet-16vcpu-ubuntu-2204 + env: + RUSTFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Linux Tests + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' + + + # 4 vCPU, 6 GB RAM, $0.008/min + linux-buildjet-arm-small: + runs-on: buildjet-4vcpu-ubuntu-2204-arm + env: + RUSTFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Linux Tests + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' + + # 8 vCPU, 12 GB RAM, $0.016/min + linux-buildjet-arm-medium: + runs-on: buildjet-8vcpu-ubuntu-2204-arm + env: + RUSTFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Linux Tests + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' + + # 16 vCPU, 24 GB RAM, $0.032/min + linux-buildjet-arm-large: + runs-on: buildjet-16vcpu-ubuntu-2204-arm + env: + RUSTFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + - name: Linux Tests + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-ci + - name: Linux Gadget Tests w/o debug assertions + run: | + cargo nextest run --profile ci --workspace --cargo-profile dev-no-assertions -E 'test(circuit::gadgets)' misc: runs-on: ${{ matrix.os }}