-
Notifications
You must be signed in to change notification settings - Fork 109
67 lines (58 loc) · 1.48 KB
/
ci.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
64
65
66
67
name: Build
on:
push:
paths-ignore:
- '**.md'
branches:
- master
- dev
pull_request:
paths-ignore:
- '**.md'
branches:
- master
release:
jobs:
windows-build:
runs-on: windows-latest
strategy:
matrix:
platform: [x86, x64, ARM64]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: ${{matrix.platform}}
- name: Build
run: msbuild /m /property:Configuration=Release /property:Platform=${{matrix.platform}}
- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/master'
with:
name: ${{matrix.platform}}
path: |
${{matrix.platform}}/*.exe
${{matrix.platform}}/*.dll
create-release:
if: github.ref == 'refs/heads/master'
needs: windows-build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
id: download
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Zipping artifacts
run: 7z a UWPDumper.zip ${{steps.download.outputs.download-path}}/*
- name: Create release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Latest Build"
files: UWPDumper.zip