File tree 2 files changed +18
-11
lines changed
2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -103,20 +103,26 @@ jobs:
103
103
runs-on : windows-latest
104
104
defaults :
105
105
run :
106
- shell : bash
106
+ shell : msys2 {0}
107
+ env :
108
+ CC : gcc
109
+ CFGOPT : --disable-symbols --disable-shared
107
110
steps :
108
- - name : Checkout
109
- uses : actions/checkout@v2
110
111
- name : Install MSYS2
111
112
uses : msys2/setup-msys2@v2
113
+ with :
114
+ msystem : MINGW64
115
+ install : git mingw-w64-x86_64-toolchain make zip
116
+ - name : Checkout
117
+ uses : actions/checkout@v2
112
118
- name : Prepare
113
119
run : |
114
120
touch generic/tclStubInit.c generic/tclOOStubInit.c
115
121
echo "VER_PATH=$(cd tools; pwd)/addVerToFile.tcl" >> $GITHUB_ENV
116
122
mkdir 1dist
117
123
working-directory : .
118
124
- name : Configure
119
- run : ./configure --disable-symbols --disable-shared --enable-zipfs
125
+ run : ./configure $CFGOPT
120
126
working-directory : win
121
127
- name : Build
122
128
run : |
Original file line number Diff line number Diff line change 1
1
name : Windows
2
2
on : [push]
3
+ env :
4
+ ERROR_ON_FAILURES : 1
3
5
jobs :
4
6
msvc :
5
7
runs-on : windows-latest
@@ -39,14 +41,12 @@ jobs:
39
41
if ($lastexitcode -ne 0) {
40
42
throw "nmake exit code: $lastexitcode"
41
43
}
42
- env :
43
- ERROR_ON_FAILURES : 1
44
44
CI_BUILD_WITH_MSVC: 1
45
45
gcc :
46
46
runs-on : windows-latest
47
47
defaults :
48
48
run :
49
- shell : bash
49
+ shell : msys2 {0}
50
50
working-directory : win
51
51
strategy :
52
52
matrix :
@@ -58,10 +58,13 @@ jobs:
58
58
- " --enable-symbols=mem"
59
59
# Using powershell means we need to explicitly stop on failure
60
60
steps :
61
+ - name : Install MSYS2
62
+ uses : msys2/setup-msys2@v2
63
+ with :
64
+ msystem : MINGW64
65
+ install : git mingw-w64-x86_64-toolchain make
61
66
- name : Checkout
62
67
uses : actions/checkout@v2
63
- - name : Install MSYS2 and Make
64
- run : choco install msys2 make
65
68
- name : Prepare
66
69
run : |
67
70
touch tclStubInit.c tclOOStubInit.c tclOOScript.h
78
81
run : make tcltest
79
82
- name : Run Tests
80
83
run : make test
81
- env :
82
- ERROR_ON_FAILURES : 1
83
84
84
85
# If you add builds with Wine, be sure to define the environment variable
85
86
# CI_USING_WINE when running them so that broken tests know not to run.
You can’t perform that action at this time.
0 commit comments