Skip to content

v0.0.1

v0.0.1 #1

Workflow file for this run

name: Release binary
on:
release:
types: [published]
jobs:
build-go-binary:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Set APP_VERSION env
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
- name: Set BUILD_TIME env
run: echo BUILD_TIME=$(date +'%Y-%m-%d %H:%M:%S') >> ${GITHUB_ENV}
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_flags: -v
binary_name: "rustdesk-api-server"
ldflags: -X "github.com/iceking2nd/rustdesk-api-server/global.Version=${{ env.APP_VERSION }}" -X "github.com/iceking2nd/rustdesk-api-server/global.BuildTime=${{ env.BUILD_TIME }}" -X github.com/iceking2nd/rustdesk-api-server/global.GitCommit=${{ github.sha }}