-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (62 loc) · 1.59 KB
/
windows.yml
File metadata and controls
74 lines (62 loc) · 1.59 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
70
71
72
73
74
name: Windows
on:
push:
branches:
- trunk
- main
pull_request:
branches:
- trunk
- main
workflow_dispatch:
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build:
strategy:
matrix:
include:
- os: "windows-2022"
config: vcpkg-VS-17
build: VS-17-Debug
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache Cargo registry
if: always()
uses: actions/cache@v3
with:
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('./Cargo.lock') }}
path: ~/.cargo/registry
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache vcpkg registry
if: always()
uses: actions/cache@v3
with:
key: ${{ runner.os }}-vcpkg-${{ hashFiles('./vcpkg*.json') }}
path: build/vcpkg_installed/**/*
restore-keys: |
${{ runner.os }}-vcpkg-
- name: Install rust dependencies
run: |
cargo install wasm-tools wit-bindgen-cli
- name: configure
run: |
cmake --preset ${{ matrix.config }}
- name: build
run: |
cmake --build --preset ${{ matrix.build }}
- name: test
working-directory: build
run: |
ctest -C Debug -VV
- name: Upload error logs
if: ${{ failure() || cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-logs
path: ./**/*.log