Skip to content

Commit a3f204c

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 a3f204c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
os: windows-2025
6464
use-cross: false
6565
target: x86_64-pc-windows-msvc
66+
# TODO: Remove RUSTFLAGS workaround when framework_lib updates to built v0.8+ with gix feature.
67+
# See: .cargo/config.toml for details
68+
rustflags: '-C link-arg=advapi32.lib'
6669

6770
steps:
6871
- name: Checkout
@@ -99,9 +102,9 @@ jobs:
99102

100103
- name: Build (without cross)
101104
if: matrix.build != 'freebsd' && !matrix.use-cross
102-
run: cargo build --release --locked --target ${{ matrix.target }}
105+
run: cargo build --release --locked --locked ${{ matrix.rustflags }} --target ${{ matrix.target }}
103106

104107
- name: Build (cross)
105108
if: matrix.use-cross
106-
run: cross build --release --locked --target ${{ matrix.target }}
109+
run: cross build --release --target ${{ matrix.target }}
107110

0 commit comments

Comments
 (0)