-
Notifications
You must be signed in to change notification settings - Fork 9
69 lines (54 loc) · 1.91 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
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: Install zlib with vcpkg
run: vcpkg install zlib:x64-windows-static
- name: Install curl with vcpkg
run: vcpkg install curl:x64-windows-static
- name: Build Tcl
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