-
Notifications
You must be signed in to change notification settings - Fork 109
210 lines (205 loc) · 7.87 KB
/
windows_tests.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
name: windows-tests
on:
push:
branches-ignore:
- c-main
- c-3.2
pull_request:
jobs:
native-cmd:
runs-on: windows-2022
env:
TCL_INSTALLER: SetupTcl-8.6.13-x64_Bawt-2.3.1
TCL_DL_URL: http://www.bawt.tcl3d.org/download/Tcl-Pure
TCLSH_DIR: C:\Tcl\bin
DIST_WIN: modules-*-win
MODULE_DIR: C:\Program Files\Environment Modules\bin
steps:
- name: Configure Git autocrlf
shell: bash
run: git config --global core.autocrlf input
- uses: actions/checkout@v4
with:
fetch-depth: 0
set-safe-directory: /cygdrive/d/a/modules/modules
- uses: cygwin/cygwin-install-action@master
with:
# precise all sphinxcontrib packages required as dependency spec
# of python39-sphinx package is regularly broken
packages: make sed git autoconf automake libtool tcl python39 python39-sphinx gzip zip python39-sphinxcontrib-applehelp python39-sphinxcontrib-devhelp python39-sphinxcontrib-htmlhelp python39-sphinxco ntrib-jsmath python39-sphinxcontrib-qthelp python39-sphinxcontrib-serializinghtml python39-sphinxcontrib-websupport python39-alabaster python39-sqlalchemy
- name: Install Tcl under Windows
shell: cmd
run: |
curl -LfsS -o %TCL_INSTALLER%.exe %TCL_DL_URL%/%TCL_INSTALLER%.exe
%TCL_INSTALLER% /verysilent
- name: Configure Git safe.directory
run: |
bash -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
- name: Build Modules dist
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure --disable-libtclenvmodules && make dist-win'
- name: Install Modules
shell: cmd
run: |
jar xvf %DIST_WIN%.zip
cd %DIST_WIN%
INSTALL.bat
- name: Test Modules installation
shell: cmd
run: |
:: manually define module cmd dir as PATH updated by INSTALL.bat
:: is not inherited by test_script
if not "%TCLSH_DIR%" == "" path %MODULE_DIR%;%TCLSH_DIR%;%PATH%
cd %DIST_WIN%
TESTINSTALL.bat
- name: Uninstall Modules
shell: cmd
run: |
cd %DIST_WIN%
UNINSTALL.bat
native-pwsh:
runs-on: windows-2022
env:
TCL_INSTALLER: SetupTcl-8.6.13-x64_Bawt-2.3.1
TCL_DL_URL: http://www.bawt.tcl3d.org/download/Tcl-Pure
TCLSH_DIR: C:\Tcl\bin
PWSH_INSTALLER: PowerShell-7.4.5-win-x64.msi
PWSH_DL_URL: https://github.com/PowerShell/PowerShell/releases/download/v7.4.5
DIST_WIN: modules-*-win
steps:
- name: Configure Git autocrlf
shell: bash
run: git config --global core.autocrlf input
- uses: actions/checkout@v4
with:
fetch-depth: 0
set-safe-directory: /cygdrive/d/a/modules/modules
- uses: cygwin/cygwin-install-action@master
with:
# precise all sphinxcontrib packages required as dependency spec
# of python39-sphinx package is regularly broken
packages: make sed git autoconf automake libtool tcl python39 python39-sphinx gzip zip python39-sphinxcontrib-applehelp python39-sphinxcontrib-devhelp python39-sphinxcontrib-htmlhelp python39-sphinxco ntrib-jsmath python39-sphinxcontrib-qthelp python39-sphinxcontrib-serializinghtml python39-sphinxcontrib-websupport python39-alabaster python39-sqlalchemy
- name: Install Tcl under Windows
shell: cmd
run: |
curl -LfsS -o %TCL_INSTALLER%.exe %TCL_DL_URL%/%TCL_INSTALLER%.exe
%TCL_INSTALLER% /verysilent
- name: Install Powershell Core under Windows
shell: cmd
run: |
curl -LfsS -o %PWSH_INSTALLER% %PWSH_DL_URL%/%PWSH_INSTALLER%
msiexec.exe /package %PWSH_INSTALLER% /quiet ADD_PATH=1
- name: Configure Git safe.directory
run: |
bash -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
- name: Build Modules dist
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure --disable-libtclenvmodules && make dist-win'
- name: Install Modules
shell: cmd
run: |
jar xvf %DIST_WIN%.zip
cd %DIST_WIN%
INSTALL_PWSH.bat
- name: Test Modules installation
shell: cmd
run: |
:: manually define module cmd dir as PATH updated by INSTALL.bat
:: is not inherited by test_script
if not "%TCLSH_DIR%" == "" path %TCLSH_DIR%;%PATH%
cd %DIST_WIN%
pwsh TESTINSTALL_PWSH.ps1
- name: Uninstall Modules
shell: cmd
run: |
cd %DIST_WIN%
UNINSTALL.bat
cygwin:
runs-on: windows-2022
steps:
- name: Configure Git autocrlf
shell: bash
run: git config --global core.autocrlf input
- uses: actions/checkout@v4
with:
fetch-depth: 0
set-safe-directory: /cygdrive/d/a/modules/modules
- uses: cygwin/cygwin-install-action@master
with:
# precise all sphinxcontrib packages required as dependency spec
# of python39-sphinx package is regularly broken
# precise liblapack0 package needed by R package (missing dependency
# since R-4.2.1-1)
packages: make sed git autoconf automake libtool tcl dejagnu python39 python39-sphinx gzip ruby zsh tcsh mksh fish cmake R liblapack0 tcl-devel gcc-core wget python39-sphinxcontrib-applehelp python39-sphinxcontrib-devhelp python39-sphinxcontrib-htmlhelp python39-sphinxcontrib-jsmath python39-sphinxcontrib-qthelp python39-sphinxcontrib-serializinghtml python39-sphinxcontrib-websupport python39-alabaster python39-sqlalchemy
- name: Configure Git safe.directory
run: |
bash -lc 'git config --global --add safe.directory $(cygpath -u "$GITHUB_WORKSPACE")'
- name: Build Modules
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure && make'
- name: Test Modules build
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && script/mt'
- name: Install Modules
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && make install'
- name: Test Modules installation
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && script/mt install'
- name: Uninstall Modules
run: |
bash -lc 'cd $(cygpath -u "$GITHUB_WORKSPACE") && make uninstall'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: testsuite-logs-${{ github.job }}
path: |
modules.log
install.log
retention-days: 5
msys:
runs-on: windows-2022
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
- name: Configure Git autocrlf
shell: bash
run: git config --global core.autocrlf input
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install system packages
shell: msys2 {0}
run: |
pacman --noconfirm --noprogressbar -S tcl tcl-devel dejagnu python ruby cmake zsh tcsh mksh fish gcc autoconf make git wget gzip
- name: Build Modules
shell: msys2 {0}
run: |
./configure
make
- name: Test Modules build
shell: msys2 {0}
run: |
script/mt
- name: Install Modules
shell: msys2 {0}
run: |
make install
- name: Test Modules installation
shell: msys2 {0}
run: |
script/mt install
- name: Uninstall Modules
shell: msys2 {0}
run: |
make uninstall
- uses: actions/upload-artifact@v4
if: failure()
with:
name: testsuite-logs-${{ github.job }}
path: |
modules.log
install.log
retention-days: 5