Skip to content

Build

Build #9

Workflow file for this run

name: Build
on: workflow_dispatch
permissions: write-all
jobs:
release-update:
strategy:
fail-fast: false
matrix:
include:
- arch: "x64"
goarch: "amd64"
- arch: "ia32"
goarch: "386"
- arch: "arm64"
goarch: "arm64"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: Build
env:
GOOS: windows
GOAMD64: v1
GOARCH: ${{ matrix.goarch }}
run: go build -ldflags "-H windowsgui" -o mihomo-party-run.exe
- name: Update Tag
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ matrix.arch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
name: ${{ matrix.arch }}
tag_name: ${{ matrix.arch }}
token: ${{ secrets.GITHUB_TOKEN }}
files: mihomo-party-run.exe