-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (64 loc) · 2.23 KB
/
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
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
name: windows
on: [push]
jobs:
build_package:
name: Build TkGL extension for Tcl 8 and 9 on Windows
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup msys
uses: msys2/setup-msys2@v2
- name: Init MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Download Tcl and Tk source code with bash
run: ci/windows/fetch_tcltk.sh
shell: bash
- name: Build Tcl 8 with powershell
run: |
&nmake INSTALLDIR=..\..\TclTk8 -f makefile.vc
if ($lastexitcode -ne 0) {
throw "nmake exit code for Tcl 8: $lastexitcode"
}
&nmake INSTALLDIR=..\..\TclTk8 -f makefile.vc install
working-directory: tcl8/win
- name: Build Tk 8 with powershell
run: |
&nmake INSTALLDIR=..\..\TclTk8 TCLDIR=..\..\tcl8 -f makefile.vc
if ($lastexitcode -ne 0) {
throw "nmake exit code for Tk 8: $lastexitcode"
}
&nmake INSTALLDIR=..\..\TclTk8 -f makefile.vc install
working-directory: tk8/win
- name: Build Tcl 9 with powershell
run: |
&nmake INSTALLDIR=..\..\TclTk9 -f makefile.vc
if ($lastexitcode -ne 0) {
throw "nmake exit code for Tcl 9: $lastexitcode"
}
&nmake INSTALLDIR=..\..\TclTk9 -f makefile.vc install
working-directory: tcl9/win
- name: Build Tk 9 with powershell
run: |
&nmake INSTALLDIR=..\..\TclTk9 TCLDIR=../../tcl9 -f makefile.vc
if ($lastexitcode -ne 0) {
throw "nmake exit code for Tk 9: $lastexitcode"
}
###&nmake INSTALLDIR=..\..\TclTk9 -f makefile.vc install
working-directory: tk9/win
- name: Build TkGL for Tcl/Tk 8 and 9
run: |
nmake TCLDIR=..\tcl8 TKDIR=..\tk8 -f makefile.vc
nmake TCLDIR=..\tcl9 TKDIR=..\tk9 -f makefile.vc
shell: cmd
working-directory: win
- name: Assemble the package
run: |
mkdir -p dist/TkGL1.0
cp win/Release*/*.* dist/TkGL1.0
shell: bash
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: TkGL_package
path: ./dist