From 242dadf352ff9ab4174d0ff04ec3d7abbcffac62 Mon Sep 17 00:00:00 2001 From: Andrus Salumets Date: Thu, 30 Nov 2023 14:23:00 +0000 Subject: [PATCH 1/4] Switch to self-hosted runner --- .github/workflows/rust.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b75f60a3c..f46a83bec 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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: --release fmt: name: Rustfmt - runs-on: ubuntu-latest + runs-on: lg-prover-32CPU steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 From cc89a22e14d974301ebf646e6950a84eabb681a9 Mon Sep 17 00:00:00 2001 From: Andrus Salumets Date: Thu, 30 Nov 2023 15:43:01 +0000 Subject: [PATCH 2/4] Add '--test-threads 32' --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f46a83bec..5bb6edf7b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -56,7 +56,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --release + args: "--all --release -- --test-threads 32" fmt: name: Rustfmt From 7df246fc500f3f4429155b4e60ca66817d9dc98a Mon Sep 17 00:00:00 2001 From: Andrus Salumets Date: Thu, 30 Nov 2023 15:54:28 +0000 Subject: [PATCH 3/4] Add 'try 32 threads with ubuntu-latest --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5bb6edf7b..3ee47814d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,7 +10,7 @@ name: Check, Test, and Format jobs: check: name: Check - runs-on: lg-prover-32CPU + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -32,7 +32,7 @@ jobs: command: check test: name: Test Suite - runs-on: lg-prover-32CPU + runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v2 @@ -60,7 +60,7 @@ jobs: fmt: name: Rustfmt - runs-on: lg-prover-32CPU + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 From 95b98b448bc0a5e50dfd33d4afa2d16f41179a17 Mon Sep 17 00:00:00 2001 From: Andrus Salumets Date: Thu, 30 Nov 2023 16:01:04 +0000 Subject: [PATCH 4/4] Revert to lg-prover-32CPU --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3ee47814d..5bb6edf7b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,7 +10,7 @@ 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 @@ -32,7 +32,7 @@ jobs: command: check test: name: Test Suite - runs-on: ubuntu-latest + runs-on: lg-prover-32CPU steps: - name: Checkout sources uses: actions/checkout@v2 @@ -60,7 +60,7 @@ jobs: fmt: name: Rustfmt - runs-on: ubuntu-latest + runs-on: lg-prover-32CPU steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1