mirror of
https://github.com/walles/moar.git
synced 2024-10-05 16:07:54 +03:00
6e415f9a78
And add a separate build step on Linux, so we're more comparable with Windows. The extra build step will take some time, but it will also make the next build step faster due to caching.
30 lines
806 B
YAML
30 lines
806 B
YAML
name: Linux CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: "go.mod"
|
|
|
|
# golangci-lint is required by test.sh. Latest version here if you want
|
|
# to bump it, version number is at the end of the "curl | sh"
|
|
# commandline below:
|
|
# https://github.com/golangci/golangci-lint/releases/latest
|
|
- name: Install golangci-lint
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.54.1
|
|
|
|
- run: go build
|
|
- run: ./test.sh
|
|
- run: GOARCH=386 ./test.sh
|