Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Summpot committed Oct 29, 2023
1 parent b5bd134 commit 1a1c6d9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 16 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@ on:

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
rid:
[
linux-x64,
linux-arm64,
osx-arm64,
osx-x64,
win-arm64,
win-x64,
win-x86,
]
include:
- { os: ubuntu-latest, rid: linux-x64 }
- { os: ubuntu-latest, rid: linux-arm64 }
- { os: macos-latest, rid: osx-arm64 }
- { os: macos-latest, rid: osx-x64 }
- { os: windows-latest, rid: win-arm64 }
- { os: windows-latest, rid: win-x64 }
- { os: windows-latest, rid: win-x86 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -21,10 +41,9 @@ jobs:
with:
global-json-file: global.json

- name: Do release
- name: Do pack
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser build ./dotnet-releaser.toml --force
dotnet pack -p:RuntimeIdentifier=${{ matrix.rid }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down
25 changes: 22 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ on:

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
rid:
[
linux-x64,
linux-arm64,
osx-arm64,
osx-x64,
win-arm64,
win-x64,
win-x86,
]
include:
- { os: ubuntu-latest, rid: linux-x64 }
- { os: ubuntu-latest, rid: linux-arm64 }
- { os: macos-latest, rid: osx-arm64 }
- { os: macos-latest, rid: osx-x64 }
- { os: windows-latest, rid: win-arm64 }
- { os: windows-latest, rid: win-x64 }
- { os: windows-latest, rid: win-x86 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -20,8 +40,7 @@ jobs:

- name: Do release
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_API_KEY}}" --github-token "${{secrets.GITHUB_TOKEN}}" ./dotnet-releaser.toml --force
dotnet pack -p:RuntimeIdentifier=${{ matrix.rid }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
Expand Down
9 changes: 0 additions & 9 deletions dotnet-releaser.toml

This file was deleted.

0 comments on commit 1a1c6d9

Please sign in to comment.