forked from dnSpy/dnSpy
-
-
Notifications
You must be signed in to change notification settings - Fork 455
63 lines (55 loc) · 1.7 KB
/
build.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
61
62
63
name: GitHub CI
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- released
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-latest
defaults:
run:
shell: pwsh
strategy:
matrix:
platform: [netframework, net-x86, net-x64]
include:
- platform: netframework
package-name: netframework
build-dir: net48
- platform: net-x86
package-name: net-win32
build-dir: net8.0-windows\win-x86\publish
- platform: net-x64
package-name: net-win64
build-dir: net8.0-windows\win-x64\publish
steps:
- uses: actions/checkout@v4.2.2
with:
submodules: true
- uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 8.0.x
dotnet-quality: ga
- uses: microsoft/setup-msbuild@v2.0.0
- name: Build dnSpy (${{matrix.platform}})
run: .\build.ps1 ${{matrix.platform}}
- name: Create output directory
run: New-Item -ItemType Directory -Path C:\builtfiles\dnSpy-${{matrix.platform}} -Force > $null
continue-on-error: true
- name: Copy release files for upload
run: Copy-Item -Path dnSpy\dnSpy\bin\Release\${{matrix.build-dir}}\* -Destination C:\builtfiles\dnSpy-${{matrix.platform}} -Recurse
- uses: actions/upload-artifact@v4.4.3
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: dnSpy-${{matrix.package-name}}
path: C:\builtfiles\dnSpy-${{matrix.platform}}
if-no-files-found: error
compression-level: 9