-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1.17 KB
/
ci.yml
File metadata and controls
39 lines (33 loc) · 1.17 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
architecture: [x86, x64, arm64]
platform: [win]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build utilities
shell: pwsh
run: |
msbuild /m /t:restore,"Windows Build Identifier: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=false "Windows Build Identifier.sln"
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.platform }}-${{ matrix.architecture }}
path: ${{ github.workspace }}/artifacts/${{ matrix.platform }}-${{ matrix.architecture }}