-
-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (44 loc) · 1.32 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
skip_test:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: same_content_newer
skip_after_successful_duplicate: 'true'
build:
needs: skip_test
if: needs.skip_test.outputs.should_skip != 'true'
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
triplet: x64-linux
- os: windows-latest
triplet: x64-windows-static-md
- os: windows-latest
triplet: x86-windows-static-md
- os: macos-latest
triplet: x64-osx
name: ${{matrix.triplet}}
runs-on: ${{matrix.os}}
env:
VCPKG_DEFAULT_TRIPLET: ${{matrix.triplet}}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: lukka/get-cmake@latest
- uses: lukka/run-vcpkg@v11
- uses: lukka/[email protected]
with:
configurePreset: 'ninja-vcpkg'
buildPreset: 'ninja-vcpkg'
testPreset: 'ninja-vcpkg'
configurePresetAdditionalArgs: "[ '-DLIBMUMBLE_WARNINGS_AS_ERRORS=ON', '-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}' ]"