Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build speed #1861

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: true

env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std" -C link-arg=-fuse-ld=/usr/local/bin/mold'
RUST_LOG: info,libp2p=off,node=error

jobs:
Expand Down Expand Up @@ -47,6 +47,9 @@ jobs:
with:
prefix-key: v1-rust

- uses: rui314/setup-mold@v1
mold-version: 2.31.0

- name: Build
# Build in release without `testing` feature, this should work without `hotshot_example` config.
run: |
Expand Down Expand Up @@ -102,6 +105,9 @@ jobs:
- name: Enable Rust Caching
uses: Swatinem/rust-cache@v2

- uses: rui314/setup-mold@v1
mold-version: 2.31.0

- name: Build
run: |
cargo build --locked --release --workspace
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
with:
version: nightly

- uses: rui314/setup-mold@v1

- uses: dtolnay/rust-toolchain@nightly

- name: Enable Rust Caching
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: rui314/setup-mold@v1

- uses: actions/checkout@v4
name: Checkout Repository

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/slowtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: ${{ !contains(github.ref, 'main')}}

env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std" -C link-arg=-fuse-ld=/usr/local/bin/mold'
RUST_LOG: info,libp2p=off,node=error

jobs:
Expand All @@ -34,6 +34,9 @@ jobs:
with:
version: nightly

- uses: rui314/setup-mold@v1
mold-version: 2.31.0

- uses: taiki-e/install-action@nextest

- name: Checkout Repository
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: true

env:
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"'
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std" -C link-arg=-fuse-ld=/usr/local/bin/mold'
RUST_LOG: info,libp2p=off,node=error

jobs:
Expand All @@ -34,6 +34,9 @@ jobs:
with:
version: nightly

- uses: rui314/setup-mold@v1
mold-version: 2.31.0

- uses: taiki-e/install-action@nextest

- name: Checkout Repository
Expand Down
Loading