Skip to content

Commit 820960b

Browse files
committed
Apply hardcore release binary size reduction (we really can't crash now)
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
1 parent bb1e45d commit 820960b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/cid.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ jobs:
9696
- target: x86_64-unknown-linux-gnu
9797
os: ubuntu-latest
9898
tool: cargo
99+
- target: x86_64-unknown-linux-musl
100+
os: ubuntu-latest
101+
tool: cargo
99102
- target: x86_64-apple-darwin
100103
os: macos-latest
101104
tool: cargo
@@ -115,12 +118,14 @@ jobs:
115118
- name: Checkout
116119
uses: actions/checkout@v3
117120
- name: Install Rust
118-
run: rustup target add ${{ matrix.target }}
121+
run: |
122+
rustup target add ${{ matrix.target }}
123+
rustup component add rust-src
119124
- name: Install cross
120125
if: matrix.tool == 'cross'
121126
run: cargo install cross
122127
- name: Build binary
123-
run: ${{ matrix.tool }} rustc --release --locked --bin=ask --target=${{ matrix.target }} -- -C target-feature=+crt-static
128+
run: ${{ matrix.tool }} build --release --locked --target=${{ matrix.target }} -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
124129
- name: Upload binary
125130
if: matrix.os != 'windows-latest'
126131
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)