Skip to content

Build Go tools

Build Go tools #933

Workflow file for this run

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@ee0669bd1cc54295c223e0bb666b733df41de1c5 # ratchet: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@440c8c1cb0ed28b9f43e4d1d670870f059653174 # ratchet: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@440c8c1cb0ed28b9f43e4d1d670870f059653174 # ratchet:ncipollo/release-action@v1
with:
tag: go-tools
allowUpdates: true
replacesArtifacts: true
artifacts: "go-tools/unversioned/*.bz2"
token: ${{ secrets.GITHUB_TOKEN }}