Skip to content

Commit 927d59f

Browse files
committed
ci(release): for static compilation
1 parent 925e1bc commit 927d59f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
target: ${{ matrix.build.TARGET }}
7070

7171
- name: Build
72-
run: SOAR_NIGHTLY=1 cargo build --release --locked --target ${{ matrix.build.TARGET }}
72+
run: SOAR_NIGHTLY=1 RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --locked --target ${{ matrix.build.TARGET }}
7373

7474
- name: Prepare release assets
7575
shell: bash

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
target: ${{ matrix.build.TARGET }}
5454

5555
- name: Build
56-
run: cargo build --release --locked --target ${{ matrix.build.TARGET }}
56+
run: RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --locked --target ${{ matrix.build.TARGET }}
5757

5858
- name: Prepare release assets
5959
shell: bash

0 commit comments

Comments
 (0)