This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Bump actions/checkout from 3 to 4 #13
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
on: [push, pull_request] | |
name: test-and-build | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.19 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get modules | |
run: go mod vendor | |
- name: Test | |
run: go test ./... | |
- name: Build | |
run: | | |
mkdir bin | |
GOOS=windows GOARCH=amd64 go build -o ./bin/$BINARY_windows_amd64 | |
GOOS=linux GOARCH=amd64 go build -o ./bin/$BINARY_linux_amd64 | |
GOOS=darwin GOARCH=amd64 go build -o ./bin/$BINARY_darwin_amd64 | |
env: | |
BINARY: dither |