Skip to content

Commit

Permalink
Switch to self-hosted runner on aws (#7)
Browse files Browse the repository at this point in the history
* Switch to self-hosted runner

* Add '--test-threads 32'

* Add 'try 32 threads with ubuntu-latest

* Revert to lg-prover-32CPU
  • Loading branch information
andrussal authored Nov 30, 2023
1 parent aa7e829 commit f95203a
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
- main


name: Check and Lint
name: Check, Test, and Format

jobs:
check:
name: Check
runs-on: ubuntu-latest
runs-on: lg-prover-32CPU
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -30,10 +30,37 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: lg-prover-32CPU
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: "--all --release -- --test-threads 32"

fmt:
name: Rustfmt
runs-on: ubuntu-latest
runs-on: lg-prover-32CPU
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit f95203a

Please sign in to comment.