32
32
toolchain : owc20,
33
33
toolversion : owc20
34
34
}
35
+ - {
36
+ name : " Windows Legacy OWC" ,
37
+ os : windows-latest,
38
+ toolchain : owc19,
39
+ toolversion : owc19
40
+ }
35
41
36
42
steps :
37
43
@@ -66,32 +72,42 @@ jobs:
66
72
version : " 2.0"
67
73
location : " C:\\ Watcom"
68
74
75
+ - name : OpenWatcom legacy setup
76
+ uses : open-watcom/setup-watcom@v0
77
+ if : startsWith(matrix.config.name, 'Windows Legacy OWC')
78
+ with :
79
+ version : " 1.9"
80
+ location : " C:\\ Watcom"
81
+
69
82
- name : Windows extra
70
- if : startsWith (matrix.config.name, 'Windows Latest MSVC') || startsWith (matrix.config.name, 'Windows Latest OWC')
83
+ if : contains (matrix.config.name, 'MSVC') || contains (matrix.config.name, 'OWC')
71
84
run : |
72
85
c:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-gettext-tools
73
86
74
87
- name : Generate
75
- if : startsWith(matrix.config.name, 'Windows Latest ')
88
+ if : startsWith(matrix.config.name, 'Windows')
76
89
shell : cmd
77
90
run : |
78
91
@if "${{ matrix.config.toolchain }}"=="mingw32" set PATH=c:\msys64\mingw32\bin;%PATH%
79
92
@if "${{ matrix.config.toolchain }}"=="mingw64" set PATH=c:\msys64\mingw64\bin;%PATH%
80
93
@if "${{ matrix.config.toolchain }}"=="owc20" call .\mcwin32\support\owc20setenv.bat C:\Watcom
94
+ @if "${{ matrix.config.toolchain }}"=="owc19" call .\mcwin32\support\owc19setenv.bat C:\Watcom
81
95
@set BUSYBOX=./support/busybox
82
96
@if "${{ matrix.config.toolchain }}"=="mingw64" set BUSYBOX=./support/busybox64
83
97
@set PERL=c:/Strawberry/perl/bin/perl
84
98
cd mcwin32
85
- c:/Strawberry/perl/bin/perl makelib.pl --perlpath=c:/Strawberry/perl/bin --busybox=%BUSYBOX% --verbose "${{ matrix.config.toolchain }}"
99
+ c:/Strawberry/perl/bin/perl makelib.pl --perlpath=c:/Strawberry/perl/bin --busybox=%BUSYBOX% "${{ matrix.config.toolchain }}"
86
100
87
101
- name : Compile
88
- if : startsWith(matrix.config.name, 'Windows Latest ')
102
+ if : startsWith(matrix.config.name, 'Windows')
89
103
shell : cmd
90
104
run : |
91
105
@if "${{ matrix.config.toolchain }}"=="mingw32" set PATH=c:\msys64\mingw32\bin;%PATH%
92
106
@if "${{ matrix.config.toolchain }}"=="mingw64" set PATH=c:\msys64\mingw64\bin;%PATH%
93
107
@if "${{ matrix.config.toolchain }}"=="owc20" call .\mcwin32\support\owc20setenv.bat C:\Watcom
94
108
@if "${{ matrix.config.toolchain }}"=="owc20" set PATH=%PATH%;c:\msys64\mingw64\bin
109
+ @if "${{ matrix.config.toolchain }}"=="owc19" call .\mcwin32\support\owc19setenv.bat C:\Watcom
110
+ @if "${{ matrix.config.toolchain }}"=="owc19" set PATH=%PATH%;c:\msys64\mingw64\bin
95
111
@if "${{ matrix.config.toolchain }}"=="vc2022" set PATH=%PATH%;c:\msys64\mingw64\bin
96
112
@set PERL=c:/Strawberry/perl/bin/perl
97
113
cd mcwin32
@@ -104,6 +120,7 @@ jobs:
104
120
path : mcwin32/bin.${{ matrix.config.toolversion }}/release/*
105
121
106
122
- name : Installer
123
+ if : startsWith(matrix.config.name, 'Windows')
107
124
shell : cmd
108
125
run : |
109
126
@set PERL=c:/Strawberry/perl/bin/perl
@@ -113,6 +130,7 @@ jobs:
113
130
"%programfiles(x86)%\Inno Setup 5\ISCC" -DBUILD_INFO=1 -DBUILD_TYPE=release ".\releases\mc-inno-setup.iss"
114
131
115
132
- name : Release artifacts
133
+ if : startsWith(matrix.config.name, 'Windows')
116
134
uses : softprops/action-gh-release@v1
117
135
with :
118
136
files : ./mcwin32/releases/mcwin32-build*-setup.exe
0 commit comments