-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (40 loc) · 1.11 KB
/
go-tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build Go tools
on:
workflow_dispatch:
push:
branches:
- gotip
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 12 * * *"
jobs:
go-tools:
name: Build Go Tools
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Init Hermit
run: ./bin/hermit env --raw >> $GITHUB_ENV
- name: Build Go
run: make GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} -C go-tools build
- name: Upload Versioned
uses: ncipollo/release-action@v1
with:
tag: go-tools
allowUpdates: true
replacesArtifacts: false
artifacts: "go-tools/*.bz2"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Unversioned
uses: ncipollo/release-action@v1
with:
tag: go-tools
allowUpdates: true
replacesArtifacts: true
artifacts: "go-tools/unversioned/*.bz2"
token: ${{ secrets.GITHUB_TOKEN }}