-
Notifications
You must be signed in to change notification settings - Fork 9
93 lines (75 loc) · 2.61 KB
/
windows-ci.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Windows CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
# env:
# Path to the solution file relative to the root of the project.
#SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
# BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout tclcurl
uses: actions/checkout@v2
with:
path: tclcurl
- name: Checkout tcl
uses: actions/checkout@v2
with:
repository: tcltk/tcl
ref: core-8-6-11
path: tcl
# Note msvc defaults to 64-bit
- name: Init MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Cache vcpkg curl dependency
id: curl-cache
uses: actions/cache@v2
with:
path: C:/vcpkg/packages/curl_x64-windows-static
key: ${{ runner.os }}-vcpkgcurl
- name: Cache vcpkg zlib dependency
id: zlib-cache
uses: actions/cache@v2
with:
path: C:/vcpkg/packages/zlib_x64-windows-static
key: ${{ runner.os }}-vcpkgzlib
- name: Install zlib with vcpkg
if: steps.zlib-cache.outputs.cache-hit != 'true'
run: vcpkg install zlib:x64-windows-static
- name: Install curl with vcpkg
if: steps.curl-cache.outputs.cache-hit != 'true'
run: vcpkg install curl:x64-windows-static
- name: Cache Tcl build
id: tcl-cache
uses: actions/cache@v2
with:
path: C:/tcl
key: ${{ runner.os }}-vcpkgzlib
- name: Build Tcl
if: steps.tcl-cache.outputs.cache-hit != 'true'
working-directory: tcl/win
shell: cmd
run: |
nmake /f makefile.vc INSTALLDIR=C:\tcl
nmake /f makefile.vc INSTALLDIR=C:\tcl install
- name: make
working-directory: tclcurl/win
shell: cmd
run: nmake /f makefile.vc INSTALLDIR=C:\tcl CURLDIR=C:\vcpkg\packages\curl_x64-windows-static CURLDEPSDIR=C:\vcpkg\packages\zlib_x64-windows-static
- name: install
working-directory: tclcurl/win
shell: cmd
run: nmake /f makefile.vc INSTALLDIR=C:\tcl CURLDIR=C:\vcpkg\packages\curl_x64-windows-static CURLDEPSDIR=C:\vcpkg\packages\zlib_x64-windows-static install
- name: test
working-directory: tclcurl/win
shell: cmd
run: nmake /f makefile.vc INSTALLDIR=C:\tcl CURLDIR=C:\vcpkg\packages\curl_x64-windows-static CURLDEPSDIR=C:\vcpkg\packages\zlib_x64-windows-static test