Skip to content

Commit 8054bc4

Browse files
committed
ci: add release feature, fix musl build (exclude tracy)
1 parent 9c7d462 commit 8054bc4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
if: runner.os == 'Linux'
6464
run: sudo apt-get update && sudo apt-get install -y musl-tools
6565
- name: Build
66-
run: cargo build --profile production --target ${{ matrix.target }} --all-features
66+
run: cargo build --profile production --target ${{ matrix.target }} -p ferrumc --features release
6767
env:
6868
CC: ${{ runner.os == 'Linux' && 'musl-gcc' || '' }}
6969
CXX: ${{ runner.os == 'Linux' && 'g++' || '' }}

src/bin/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ default = [
6666
"dashboard"
6767
]
6868
tracy = ["ferrumc-logging/tracy", "dep:tracy-client"]
69+
# All features suitable for release builds (excludes profiling tools like tracy and dhat)
70+
release = ["dashboard"]
6971

7072
[dev-dependencies]
7173
tempfile = { workspace = true }

0 commit comments

Comments
 (0)