From 1a1c6d998223255eee79df2c6ee92efe08e6a582 Mon Sep 17 00:00:00 2001 From: Summpot Date: Sun, 29 Oct 2023 22:03:35 +0800 Subject: [PATCH] Update --- .github/workflows/build.yml | 27 +++++++++++++++++++++++---- .github/workflows/release.yml | 25 ++++++++++++++++++++++--- dotnet-releaser.toml | 9 --------- 3 files changed, 45 insertions(+), 16 deletions(-) delete mode 100644 dotnet-releaser.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d70942..b08dc2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a718b8f..656c1b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 diff --git a/dotnet-releaser.toml b/dotnet-releaser.toml deleted file mode 100644 index 253c443..0000000 --- a/dotnet-releaser.toml +++ /dev/null @@ -1,9 +0,0 @@ -artifacts_folder = "nupkgs" -[msbuild] -project = "TreeSitterSharp.sln" -[github] -user = "Summpot" -repo = "TreeSitterSharp" -version_prefix = "v" -[test] -enable = false