File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments