-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.34 KB
/
binaries-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Binaries on Windows Server
on:
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
- name: download winlibs
run: |
curl -OL https://github.com/brechtsanders/winlibs_mingw/releases/download/12.2.0-16.0.0-10.0.0-ucrt-r5/winlibs-i686-posix-dwarf-gcc-12.2.0-mingw-w64ucrt-10.0.0-r5.zip
unzip -q winlibs-i686-posix-dwarf-gcc-12.2.0-mingw-w64ucrt-10.0.0-r5.zip
$Env:PATH += ";$pwd/mingw32/bin"
gcc --version
- name: compile zlib
run: |
cd 3rdparty/zlib
mingw32-make -f win32mingw.mak
Get-ChildItem -Force
Get-ChildItem -Force .mingw*/*
cd ../../
- name: compile bfs
run: |
cd bfs
mingw32-make -f Makefile.mingw RC=windres STRIP=strip
Get-ChildItem -Force
ls
cd ..
- name: compile mew/mec
run: |
$Env:PATH += ";$pwd/mingw32/bin"
Get-ChildItem -Force
cd src
mingw32-make -f win32mingw.mak RC=windres STRIP=strip
dir
mingw32-make -f win32mingw.mak BTYP=c RC=windres STRIP=strip
dir
dir
cd .win32mingw-release-mec
Start-Process mec32.exe -Arguments "-V" -wait