blob: b3ad7fa128971a18a6094ea258653075ed206ec9 (
plain)
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
|
name: CI
on:
push:
branches: [master]
paths-ignore:
- "docs/**"
- "drafts/**"
- "**/README.md"
pull_request:
branches: [master]
paths-ignore:
- "docs/**"
- "drafts/**"
- "**/README.md"
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
buildConfiguration: [Debug, Release]
architecture: [x86, x64]
include:
- architecture: x86
triplet: x86-windows
- architecture: x64
triplet: x64-windows
fail-fast: true
env:
vcpkgPackages: "gtest fmt ms-gsl"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Restore artifacts, or run vcpkg, build and cache artifacts
uses: lukka/run-vcpkg@add_triplet_to_cachekey
id: runvcpkg
with:
vcpkgArguments: "${{ env.vcpkgPackages }}"
vcpkgTriplet: "${{ matrix.triplet }}"
- name: Prints outputs of run-vcpkg task
run: echo "'${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}' '${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}' "
- name: Run build script
run: python tools\win_build.py -a ${{ matrix.architecture }} -c ${{ matrix.buildConfiguration }} --skip-install-packages
|