-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 911 Bytes
/
msvc.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
name: MSVC
on:
push:
branches:
- '**'
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
std_version: [20, 23]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Visual Studio devenv
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Configure
run: |
mkdir build
cmake -S . -B build `
-G "Visual Studio 17 2022" -T v143 `
-DCMAKE_CXX_STANDARD=${{ matrix.std_version }} `
-DVCTOOLS_INSTALL_DIR="$env:VCToolsInstallDir"
- name: Build
run: |
cmake --build build -t CppStandardLibraryModule --config Release
- name: Run executable
run: |
build/Release/CppStandardLibraryModule.exe