Skip to content

Commit

Permalink
Merge pull request #458 from Alex-Fischman/fast-build
Browse files Browse the repository at this point in the history
Speed up local `make test` runs
  • Loading branch information
saulshanabrook authored Oct 31, 2024
2 parents 225d0a1 + 76aa8a5 commit 4cae848
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "CARGO_INCREMENTAL=0" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: taiki-e/install-action@v2
with:
Expand All @@ -15,12 +16,14 @@ jobs:
nits:
runs-on: ubuntu-latest
steps:
- run: echo "CARGO_INCREMENTAL=0" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: make nits
benchmark:
runs-on: ubuntu-latest
steps:
- run: echo "CARGO_INCREMENTAL=0" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Disable Incremental Build
run: echo "CARGO_INCREMENTAL=0" >> "$GITHUB_ENV"

- uses: actions/checkout@v3

- name: Install wasm-pack
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ chrono = { version = "0.4", default-features = false, features = ["now"] }
codspeed-criterion-compat = "2.7.2"
glob = "0.3.1"
libtest-mimic = "0.6.1"

[profile.release]
incremental = true

0 comments on commit 4cae848

Please sign in to comment.