generated from Generhr/__Template
56 lines (46 loc) · 1.44 KB
/
continuous-integration.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
name: Continuous Integration
on: [push, workflow_dispatch]
concurrency:
group: continuous-integration
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-16.0.0
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Run vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgDirectory: "${{ github.workspace }}/external/vcpkg"
vcpkgJsonGlob: "${{ github.workspace }}/vcpkg.json"
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: "configure-release-with-debug-info"
configurePresetAdditionalArgs: '[`-DENABLE_CODE_COVERAGE=ON`]'
buildPreset: "build-release-with-debug-info"
buildPresetAdditionalArgs: '[`--target unit_tests`]'
testPreset: "test-release-with-debug-info"
- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}