Skip to content

Commit 1568f94

Browse files
committed
Add Build Workflow
1 parent b87a6de commit 1568f94

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Publish Artifacts
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
runtime: [win-x64, osx-x64, osx-arm64, linux-x64]
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Setup .NET 9 SDK
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: '9.0.x'
22+
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
26+
- name: Publish single-file executable for ${{ matrix.runtime }}
27+
run: |
28+
dotnet publish src/CLI -c Release -r ${{ matrix.runtime }} --self-contained true /p:PublishSingleFile=true /p:IncludeAllContentForSelfExtract=true -o ./publish/${{ matrix.runtime }}
29+
30+
- name: Upload artifact for ${{ matrix.runtime }}
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: DrumMidiRemapper-${{ matrix.runtime }}
34+
path: ./publish/${{ matrix.runtime }}

0 commit comments

Comments
 (0)