Skip to content

Commit f1707f1

Browse files
Merge pull request #5 from octurion/build-artifact
Use Github Actions to create a build artifact for releases
2 parents 7fc9600 + f2ab2e2 commit f1707f1

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: MSBuild
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
SOLUTION_FILE_PATH: DPEdit
11+
BUILD_CONFIGURATION: Release
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
runs-on: windows-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Add MSBuild to PATH
24+
uses: microsoft/setup-msbuild@v1.1
25+
26+
- name: Build
27+
working-directory: ${{env.GITHUB_WORKSPACE}}
28+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
29+
30+
- name: Upload artifact
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: Built executable
34+
path: DPEdit\x64\Release\DPEdit.exe

0 commit comments

Comments
 (0)