-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (49 loc) · 1.6 KB
/
windows-x64.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
name: windows-x64
on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
BUILD_DIR: windows-x64
GITHUB_ACTION: true
jobs:
build:
runs-on: ${{ matrix.image }}
strategy:
matrix:
image: [ 'windows-latest' ]
steps:
- name: cancel-previous-runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Clone repository
uses: actions/checkout@v4
- name: cache-deps
id: cache-deps
uses: actions/cache@v3.3.1
with:
path: deps
key: deps-windows-x64-v2
- name: checkout-and-build-deps
if: steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
pip3 install -r requirements.txt
python3 sledpkg_run.py
- name: Configure the project
working-directory: ${{github.workspace}}/build
run: cmake -S .. -B ${{env.BUILD_DIR}}
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} -j2
- name: Test
working-directory: ${{github.workspace}}/build/${{env.BUILD_DIR}}
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: Install
working-directory: ${{github.workspace}}/build
run: cmake --install ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}}
- name: Upload
uses: actions/upload-artifact@v3
with:
name: KantuCompareApp-${{runner.os}}-x64
path: ${{github.workspace}}/build/${{env.BUILD_DIR}}/install