Skip to content

Commit 7c72460

Browse files
authored
CI: Initial CI configuration
1 parent 1e3dd30 commit 7c72460

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
strategy:
13+
matrix:
14+
architecture: [x86, x64, arm64]
15+
platform: [win]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Install .NET SDK
21+
uses: actions/setup-dotnet@v1
22+
with:
23+
dotnet-version: "5.0.x"
24+
25+
- name: Add MSBuild to PATH
26+
uses: microsoft/setup-msbuild@v1.0.2
27+
28+
- name: Build utilities
29+
shell: pwsh
30+
run: |
31+
msbuild /m /t:restore,driverupdater:publish /p:Platform=${{ matrix.architecture }} /p:RuntimeIdentifier=${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishDir=${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }} /p:PublishSingleFile=true /p:PublishTrimmed=true "Windows Build Identifier.sln"
32+
33+
- name: Upload artifact
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: ${{ matrix.platform }}-${{ matrix.architecture }}
37+
path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }}

0 commit comments

Comments
 (0)