mirror of
https://github.com/ThisIsDara/mhr-cfw-go.git
synced 2026-05-18 23:54:36 +03:00
fix: workflow cross-compilation for Windows
This commit is contained in:
@@ -43,11 +43,16 @@ jobs:
|
|||||||
go-version: '1.22'
|
go-version: '1.22'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags "-s -w" -o mhr-cfw-go-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/mhr-cfw
|
shell: bash
|
||||||
|
run: |
|
||||||
|
export GOOS=${{ matrix.goos }}
|
||||||
|
export GOARCH=${{ matrix.goarch }}
|
||||||
|
go build -ldflags "-s -w" -o mhr-cfw-go-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/mhr-cfw
|
||||||
|
|
||||||
- name: Rename Windows executable
|
- name: Rename Windows executable
|
||||||
if: matrix.goos == 'windows'
|
if: matrix.goos == 'windows'
|
||||||
run: Move-Item mhr-cfw-go-windows-${{ matrix.goarch }} mhr-cfw-go-windows-${{ matrix.goarch }}.exe
|
shell: bash
|
||||||
|
run: mv mhr-cfw-go-windows-${{ matrix.goarch }} mhr-cfw-go-windows-${{ matrix.goarch }}.exe
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -69,13 +74,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
- name: List artifacts
|
|
||||||
run: Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: mhr-cfw-go-*
|
files: mhr-cfw-go-*
|
||||||
body: "Built from commit ${{ github.sha }}"
|
body: |
|
||||||
|
## Bug Fixes
|
||||||
|
- Fixed Telegram API connectivity issues
|
||||||
|
- Fixed encoding issues on some websites (brotli/zstd decompression)
|
||||||
|
|
||||||
|
## Improvements
|
||||||
|
- Better compatibility with Google Apps Script relay
|
||||||
|
|
||||||
|
🦢
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user