hysteria-dev/.github/workflows/build-master.yml
dependabot[bot] 75b640f19c
chore(deps): bump crazy-max/ghaction-xgo from 1.7.0 to 1.8.0
Bumps [crazy-max/ghaction-xgo](https://github.com/crazy-max/ghaction-xgo) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/crazy-max/ghaction-xgo/releases)
- [Changelog](https://github.com/crazy-max/ghaction-xgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-xgo/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-xgo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 06:11:43 +00:00

45 lines
1.0 KiB
YAML

name: Build master
on:
push:
branches:
- 'master'
tags-ignore:
- 'v*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Check out
uses: actions/checkout@v3
- name: Get time
uses: gerred/actions/current-time@master
id: current-time
- name: Build
uses: crazy-max/ghaction-xgo@v1.8.0
env:
TIME: "${{ steps.current-time.outputs.time }}"
with:
xgo_version: latest
go_version: 1.17
dest: dist
prefix: hysteria
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/s390x,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
ldflags: -w -s -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
pkg: cmd
- name: Archive
uses: actions/upload-artifact@v3
with:
name: dist
path: dist