diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d15d12d09e..293a3a7d0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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: | @@ -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 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5fed0da73e..a4cdb07762 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -37,6 +37,8 @@ jobs: with: version: nightly + - uses: rui314/setup-mold@v1 + - uses: dtolnay/rust-toolchain@nightly - name: Enable Rust Caching diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67e48ebfd1..e59028b7ef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,6 +24,8 @@ jobs: lint: runs-on: ubuntu-latest steps: + - uses: rui314/setup-mold@v1 + - uses: actions/checkout@v4 name: Checkout Repository diff --git a/.github/workflows/slowtest.yaml b/.github/workflows/slowtest.yaml index 1653faa9da..702891f5e1 100644 --- a/.github/workflows/slowtest.yaml +++ b/.github/workflows/slowtest.yaml @@ -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: @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c14ac3dde..01658b3fab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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