update release procedure and add macOS ARM binaries #228
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on https://github.com/marco-m/timeit/blob/master/.github/workflows/ci.yml | |
on: [push, pull_request_target] | |
name: CI | |
jobs: | |
all: | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
os: [ubuntu-latest] | |
task-version: [v3.34.0] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install task ${{ matrix.task-version }} | |
run: go install github.com/go-task/task/v3/cmd/task@${{ matrix.task-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
# By default, actions/checkout will persist the GITHUB_TOKEN, so that further | |
# steps in the job can perform authenticated git commands (that is: WRITE to | |
# the repo). Following the Principle of least privilege, we disable this as long | |
# as we don't need it. | |
persist-credentials: false | |
- run: task install:deps | |
- run: task lint | |
- run: task test | |
- run: task build |