-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 909 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (37 loc) · 909 Bytes
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: CI
on:
push:
branches: [main]
paths:
- ".github/workflows/ci.yml"
- "src/**"
- "CMakeLists.txt"
- "cmake/**"
pull_request:
branches: ["**"]
paths:
- ".github/workflows/ci.yml"
- "src/**"
- "CMakeLists.txt"
- "cmake/**"
workflow_dispatch:
jobs:
build:
name: 编译 (${{ matrix.arch }})
strategy:
matrix:
arch: [x64]
fail-fast: false
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: 配置 CMake
run: cmake -B build -G "Visual Studio 17 2022" -A ${{ matrix.arch }}
- name: 编译
run: cmake --build build --config Release
- name: 上传构建产物
uses: actions/upload-artifact@v4
with:
name: OpenSysKit-Driver-${{ matrix.arch }}
path: build/Release/OpenSysKit.sys
if-no-files-found: warn