Skip to content

Commit 87acd9b

Browse files
committed
fix(windows): Hardcode linker flags in gh actions
It looks like it may not pick up the .cargo/config.toml Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent e2a2f5a commit 87acd9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ jobs:
9797
with:
9898
targets: ${{ matrix.target }}
9999

100+
# TODO: Remove RUSTFLAGS workaround when framework_lib updates to built v0.8+ with gix feature.
101+
# See: .cargo/config.toml for details
100102
- name: Build (without cross)
101103
if: matrix.build != 'freebsd' && !matrix.use-cross
102104
run: cargo build --release --locked --target ${{ matrix.target }}
105+
env:
106+
RUSTFLAGS: ${{ matrix.build == 'windows' && '-C link-arg=advapi32.lib' || '' }}
103107

104108
- name: Build (cross)
105109
if: matrix.use-cross

0 commit comments

Comments
 (0)