-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: matrix support #1766
Comments
Hey @nikaro, We already have |
Hello @andreynering, You mean something like this? build:all:
desc: Build for all targets
vars:
matrix:
- os: linux
arch: arm64
- os: linux
arch: amd64
- os: darwin
arch: arm64
- os: darwin
arch: darwin
- os: windows
arch: arm64
- os: windows
arch: amd64
cmds:
- for:
var: matrix
cmd: go build -o build/${APP}-{{.ITEM.os}}-{{.ITEM.arch}} . This is a bit cleaner (as it avoids the |
@andreynering I'm inclined to agree that there is a valid use-case here even if it is only to reduce a bit of repetition. Can I propose the following syntax: build:all:
desc: Build for all targets
cmds:
- for:
matrix:
ARCH: [amd64, arm64]
OS: [linux, darwin, windows]
cmd: go build -o build/${APP}-{{.ITEM.OS}}-{{.ITEM.ARCH}} . This way it is any extension to the existing Edit: Also related: #675 |
Yeah, thinking in it as an extension to |
I totally agree. I would add this is implemented like that in Github action and it works well |
Hello,
It would be nice to be able to do something like this:
Previous issue on the subject: #675
Current workaround:
The text was updated successfully, but these errors were encountered: