summaryrefslogtreecommitdiffstats
path: root/.github/workflows/go.yml
blob: 7b0a045fff6a499a62c98ba9e8a4432b113e0001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Build Go binaries

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@master

      - name: Make binaries
        uses: xxxserxxx/actions/golang-build@master
        with:
          args: darwin/amd64/1 darwin/386/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386
        env:
          COMPRESS_FILES: true

      - id: getfilename
        run: echo "::set-output name=file::$(ls .release/*.tgz .release/*.zip)"

      - uses: actions/upload-artifact@v1
        with:
          path: ${{ steps.getfilename.outputs.file }}