Skip to content

Commit

Permalink
Update publish-dotnet-binaries.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoramosrs authored Jan 12, 2024
1 parent f80a4f1 commit adb1e22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-dotnet-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Creating Paths
- name: Create paths
run: |
md build
md release
Expand All @@ -39,12 +39,12 @@ jobs:
run: |
dotnet build ./src/jsunmap.sln --configuration Release
- name: Build win-x64
- name: Publish binaries
run: |
$RUNTIMES = @("win-x64","linux-x64","osx-x64","win-arm64","linux-arm64","osx-arm64")
$RUNTIMES = @("win-x64","linux-x64","osx-x64","win-arm64","linux-arm64")
foreach ($RUNTIME in $RUNTIMES) {
echo "building $RUNTIME"
dotnet publish ./src/jsunmap.sln --configuration Release --self-contained --runtime $RUNTIME --verbosity quiet -p:PublishTrimmed=true -o ./build/$RUNTIME
dotnet publish ./src/jsunmap.sln --configuration Release --self-contained --runtime $RUNTIME --verbosity quiet -p:PublishTrimmed=true -o ./build/$RUNTIME -nowarn NETSDK1194,CS8600,CS8602,CS8604
Compress-Archive -Path ./build/$RUNTIME -DestinationPath ./release/JsUnMap-$RUNTIME-$RUNTIME.zip
}
Expand Down

0 comments on commit adb1e22

Please sign in to comment.