mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-27 21:55:07 +03:00
[u] add build zip windows job
This commit is contained in:
parent
51ef068b0d
commit
bca1e8fd7e
1 changed files with 45 additions and 0 deletions
45
.github/workflows/pkg.yml
vendored
45
.github/workflows/pkg.yml
vendored
|
@ -102,6 +102,51 @@ jobs:
|
|||
path: "*.msi"
|
||||
if-no-files-found: error
|
||||
|
||||
build-zip-windows:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pkgarch: ["x64", "x86", "arm", "arm64"]
|
||||
|
||||
name: Package (Windows-zip, ${{ matrix.pkgarch }})
|
||||
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "stable"
|
||||
|
||||
- name: Setup .NET Core SDK
|
||||
uses: actions/setup-dotnet@v4
|
||||
|
||||
- name: Get info
|
||||
id: vars
|
||||
run: |
|
||||
echo "PKGNAME=$(contrib/semver/name.sh)" >> $GITHUB_ENV
|
||||
echo "PKGVERSION=$(contrib/msi/msversion.sh --bare)" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Build package
|
||||
run: sh contrib/zip/build-zip.sh ${{ matrix.pkgarch }}
|
||||
|
||||
- name: Archive Release
|
||||
uses: thedoctor0/zip-release@0.7.5
|
||||
with:
|
||||
type: 'zip'
|
||||
filename: '${{ env.PKGNAME }}-${{ env.PKGVERSION }}-${{ matrix.pkgarch }}.zip'
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows zip package (${{ matrix.pkgarch }})
|
||||
path: "*.zip"
|
||||
if-no-files-found: error
|
||||
|
||||
build-packages-router:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue