-
-
Notifications
You must be signed in to change notification settings - Fork 260
60 lines (50 loc) · 1.54 KB
/
validate.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: Validate
on: [push, pull_request]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}
cancel-in-progress: true
jobs:
sharp-shell:
name: SharpShell
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build SharpShell
run: dotnet build -c Release SharpShell
- name: Run Tests
run: dotnet test -c Release SharpShell || True
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{github.job.name}}
path: SharpShell/artifacts
native-bridge:
name: NativeBridge (${{matrix.windows-version}})
runs-on: ${{matrix.windows-version}}
strategy:
matrix:
include:
- windows-version: windows-2019
visual-studio-version: 16.11
- windows-version: windows-2022
visual-studio-version: 17.10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
vs-version: ${{matrix.visual-studio-version}}
msbuild-architecture: x64
- name: Build Native Bridge
run: msbuild /p:Configuration=Release SharpShellNativeBridge
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{github.job.name}}
path: SharpShellNativeBridge/artifacts