Skip to content

Commit 30b9474

Browse files
committed
attempt 2 to make it work on arm windows
1 parent 5061f29 commit 30b9474

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

build.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)