mirror of
https://github.com/fosrl/newt.git
synced 2026-03-02 08:46:42 +00:00
feat(ci): use matrix for building all makefile targets in parallel
This commit is contained in:
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
@@ -10,22 +10,30 @@ on:
|
|||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
build:
|
||||||
runs-on: amd64-runner
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- local
|
||||||
|
- docker-build
|
||||||
|
- go-build-release-darwin-amd64
|
||||||
|
- go-build-release-darwin-arm64
|
||||||
|
- go-build-release-freebsd-amd64
|
||||||
|
- go-build-release-freebsd-arm64
|
||||||
|
- go-build-release-linux-amd64
|
||||||
|
- go-build-release-linux-arm32-v6
|
||||||
|
- go-build-release-linux-arm32-v7
|
||||||
|
- go-build-release-linux-riscv64
|
||||||
|
- go-build-release-windows-amd64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.25
|
go-version: 1.25
|
||||||
|
|
||||||
- name: Build go
|
- name: Build targets via `make`
|
||||||
run: go build
|
run: make ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
run: make docker-build
|
|
||||||
|
|
||||||
- name: Build binaries
|
|
||||||
run: make go-build-release
|
|
||||||
|
|||||||
Reference in New Issue
Block a user