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 15, 2024
1 parent bfacef0 commit b78c12a
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/publish-dotnet-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Create paths
run: |
md build
md release

- name: Compile binaries
run: |
$RUNTIMES = @("win-x64","win-arm64")
md build
md release
dotnet restore ./src/jsunmap.sln
dotnet build ./src/jsunmap.sln --configuration Release /p:WarningLevel=0
foreach ($RUNTIME in $RUNTIMES) {
Expand All @@ -53,21 +50,18 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Create paths
run: |
md build
md release

- name: Compile binaries
run: |
$RUNTIMES = @("linux-x64","linux-arm64",)
$RUNTIMES = @("linux-x64","linux-arm64")
mkdir build
mkdir release
dotnet restore ./src/jsunmap.sln
dotnet build ./src/jsunmap.sln --configuration Release /p:WarningLevel=0
foreach ($RUNTIME in $RUNTIMES) {
echo "building $RUNTIME"
dotnet publish ./src/jsunmap.csproj --configuration Release --self-contained --runtime $RUNTIME --verbosity quiet -p:PublishTrimmed=true -o ./build/$RUNTIME /p:WarningLevel=0
Compress-Archive -Path ./build/$RUNTIME -DestinationPath ./release/JsUnMap-${{ github.run_number }}-$RUNTIME.zip
zip -r ./release/JsUnMap-${{ github.run_number }}-$RUNTIME.zip ./build/$RUNTIME
}
ls ./release/
- name: Upload artifact
Expand Down

0 comments on commit b78c12a

Please sign in to comment.