forked from oetiker/rrdtool-1.x
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (65 loc) · 2.66 KB
/
release-windows.yml
File metadata and controls
69 lines (65 loc) · 2.66 KB
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
---
name: Release Windows
# yamllint disable rule:line-length
# yamllint disable-line rule:truthy
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
defaults:
run:
shell: cmd
jobs:
MSVC:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
os: [windows-2019]
triplet: [x64-windows, x86-windows]
include:
- os: windows-2019
triplet: x64-windows
# https://github.com/microsoft/vcpkg/commit/af2287382b1991dbdcb7e5112d236f3323b9dd7a
vcpkgCommitId: 'af2287382b1991dbdcb7e5112d236f3323b9dd7a'
vcpkgPackages: 'cairo expat fontconfig freetype gettext glib libpng libxml2 pango pcre zlib'
configuration: 'x64'
nmake_configuration: 'USE_64BIT=1'
- os: windows-2019
triplet: x86-windows
vcpkgCommitId: 'af2287382b1991dbdcb7e5112d236f3323b9dd7a'
vcpkgPackages: 'cairo expat fontconfig freetype gettext glib libpng libxml2 pango pcre zlib'
configuration: 'x86'
nmake_configuration: ''
env:
buildDir: '${{ github.workspace }}/build/'
steps:
- uses: actions/checkout@v1
with:
submodules: true
# Restore from cache the previously built ports. If cache-miss, download and build vcpkg (aka "bootstrap vcpkg").
- name: Restore from cache and install vcpkg
# Download and build vcpkg.
uses: lukka/run-vcpkg@v7
with:
setupOnly: false
# Location of vcpkg in the Git repository.
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '${{ matrix.vcpkgCommitId}}'
vcpkgTriplet: ${{ matrix.triplet }}
vcpkgArguments: '${{ matrix.vcpkgPackages }}'
# Ensure the vcpkg artifacts are cached, they are generated in the 'CMAKE_BINARY_DIR/vcpkg_installed' directory.
additionalCachedPaths: ${{ env.buildDir }}/vcpkg_installed
- name: Build ${{ matrix.configuration }}
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.configuration }}
nmake -f win32\Makefile_vcpkg.msc ${{ matrix.nmake_configuration }}
- name: Collect files
run: |
win32\collect_rrdtool_vcpkg_files.bat ${{ matrix.configuration }}
- uses: actions/upload-artifact@v2
with:
name: deploy-rrdtool-MSVC-${{ matrix.configuration }}
path: win32/nmake_release_${{ matrix.configuration }}_vcpkg/rrdtool-*-${{ matrix.configuration }}_vcpkg/