Skip to content

Commit 8a851ea

Browse files
committed
Update CI and CD workflows to set RUSTFLAGS for static CRT feature and simplify cargo build command
1 parent 194caf5 commit 8a851ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
SCCACHE_GHA_ENABLED: "true"
5656
# todo-zm: remove conditional once https://github.com/Mozilla-Actions/sccache-action/issues/189 is resolved
5757
RUSTC_WRAPPER: ${{ matrix.platform != 'windows-11-arm' && 'sccache' || '' }}
58+
RUSTFLAGS: -Ctarget-feature=+crt-static
5859

5960
steps:
6061
- uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
# - name: lint todo-zm: bring this back
5757
# run: cargo clippy -- -D warnings
5858
- name: build
59-
run: cargo build --target ${{ matrix.arch }}
59+
run: cargo build
6060
env:
6161
RUST_BACKTRACE: full
6262
- name: test

0 commit comments

Comments
 (0)