From 406cc774c7cc74a98804a05b20afbf3b0ef59e70 Mon Sep 17 00:00:00 2001 From: donknap Date: Sat, 10 Aug 2024 20:47:35 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1b1344c..279bb821 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -136,4 +136,35 @@ jobs: with: tag_name: ${{ github.ref_name }} files: runtime/* - prerelease: false \ No newline at end of file + prerelease: false + windows-build: + strategy: + matrix: + platform: [ 'windows-latest' ] + go-version: [ '1.22' ] + runs-on: ${{ matrix.platform }} + steps: + - name: Test Env + run: | + echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME" + echo "Tag name from github.ref_name: ${{ github.ref_name }}" + echo "Tag name from github.ref: ${{ github.ref }}" + echo "Runs name: ${{runner.os}}" + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Install dependencies + run: | + go get . + - name: Build + run: | + set CGO_ENABLED=1 + go build -o runtime/dpanel.exe + - name: upload artifact + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.ref_name }} + files: runtime/* + prerelease: false