Skip to content

Request: Put "name:" first in the build matrices? #110

@anjohnson

Description

@anjohnson

I have been editing the GHA configurations for Base and its submodules for quite some time to move the name field first in the build matrices (on the same line as the leading "-" for the block). I find the result makes it much easier to immediately see which build is being specified in each block as the name coming first summarizes it, and this also allows any of the lines setting other parameters to be copy/pasted to other blocks without having to worry about adding/removing the "-" character.

Compare:

          - os: ubuntu-22.04
            cmp: gcc
            configuration: default
            base: "3.15"
            wine: "64"
            name: "3.15 Ub-22 gcc + MinGW"

          - os: ubuntu-22.04
            cmp: gcc
            configuration: static
            base: "7.0"
            extra: "CMD_CXXFLAGS=-std=c++11"
            name: "7.0 Ub-22 gcc C++11, static"

with

          - name: "7.0 Ub gcc C++11, static"
            base: "7.0"
            os: ubuntu-latest
            cmp: gcc
            configuration: static
            extra: "CMD_CXXFLAGS=-std=c++11"

          - name: "7.0 Ub gcc u-char"
            base: "7.0"
            os: ubuntu-latest
            cmp: gcc
            configuration: static
            extra: "CMD_CFLAGS=-funsigned-char CMD_CXXFLAGS=-funsigned-char"

I'm willing to create a PR with those changes to all the examples here if there is agreement that this is a good idea, and that we should try to keep this order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions