File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,11 +66,16 @@ jobs:
6666
6767 - name : Build binaries
6868 run : |
69- zig build -Doptimize=ReleaseFast ${{ matrix.platform == 'win32' && '-Dtarget=x86_64-windows-msvc' || '' }}
69+ zig build -Doptimize=ReleaseFast
70+
71+ - name : Rebuild bspatch with MSVC ABI (Windows)
72+ if : matrix.platform == 'win32'
73+ run : |
74+ zig build bspatch-only -Doptimize=ReleaseFast -Dtarget=x86_64-windows-msvc
7075
7176 - name : Test
7277 run : |
73- zig build test ${{ matrix.platform == 'win32' && '-Dtarget=x86_64-windows-msvc' || '' }}
78+ zig build test
7479
7580 - name : Package binaries
7681 run : |
Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ pub fn build(b: *std.Build) void {
8383
8484 b .installArtifact (bspatch );
8585
86+ // Separate step to build only bspatch (used on Windows CI to rebuild with MSVC ABI
87+ // without triggering bsdiff's libsais link which requires MinGW)
88+ const bspatch_only = b .step ("bspatch-only" , "Build only bspatch" );
89+ bspatch_only .dependOn (& b .addInstallArtifact (bspatch , .{}).step );
90+
8691 const tests = b .addTest (.{
8792 .root_source_file = b .path ("tests.zig" ),
8893 .target = target ,
You can’t perform that action at this time.
0 commit comments