Skip to content
Merged
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
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
RUSTFLAGS: -D warnings -C link-arg=-fuse-ld=mold

jobs:
build:
Expand All @@ -27,16 +27,14 @@ jobs:

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Install mold linker
uses: rui314/setup-mold@v1

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Build debug
run: cargo build --all --verbose

- name: Build release
run: cargo build --all --release --verbose
- name: Check compilation
run: cargo check --all --all-targets
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
with:
components: clippy

- name: Install mold linker
uses: rui314/setup-mold@v1

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUST_MIN_STACK: 8388608
RUSTFLAGS: -C link-arg=-fuse-ld=mold

jobs:
test:
Expand All @@ -28,6 +29,9 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install mold linker
uses: rui314/setup-mold@v1

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -51,6 +55,9 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install mold linker
uses: rui314/setup-mold@v1

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -70,6 +77,9 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install mold linker
uses: rui314/setup-mold@v1

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
with:
Expand Down
Loading