Skip to content

Commit 7e2f8a8

Browse files
authored
Update windows.yml
1 parent 6397c1b commit 7e2f8a8

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/windows.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
1-
name: windows_ne
1+
name: windows
22

33
on:
44
push:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
workflow_dispatch:
89

910
permissions:
10-
contents: read
11+
contents: read
1112

1213
jobs:
1314
build:
14-
1515
runs-on: windows-latest
1616
defaults:
1717
run:
1818
shell: msys2 {0}
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
2223
- uses: msys2/setup-msys2@v2
2324
with:
2425
msystem: MINGW64
25-
update: false
26-
install: git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-zlib
27-
- name: make
28-
run: make TARGETOS=windows32
26+
update: true
27+
install: git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-zlib mingw-w64-x86_64-binutils
28+
29+
- name: Configure Static Build
30+
run: |
31+
echo "LDFLAGS += -static -lz" >> Makefile
32+
33+
- name: Build Windows Binaries
34+
run: make cross-mingw64
35+
36+
- name: Verify Binary Dependencies
37+
run: |
38+
echo "Checking for dependencies..."
39+
x86_64-w64-mingw32-objdump -p ./bin/iodine.exe | grep -i "DLL"
40+
41+
- name: Upload Windows Binaries
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: windows-binaries
45+
path: ./bin/*.exe

0 commit comments

Comments
 (0)