From 83fa6398cf458d07a22d0b8637c1f352b2f15065 Mon Sep 17 00:00:00 2001 From: J / Jacob Babich Date: Sat, 5 Oct 2024 23:34:20 -0400 Subject: [PATCH] ci: move the description of the checking / building command (which varies from whether they are being run for minimal or for latest (typically) versions of dependencies) to the job name instead of the command name --- .../workflows/check-and-build-and-test.yml | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-and-build-and-test.yml b/.github/workflows/check-and-build-and-test.yml index 481e5b8..ef38d46 100644 --- a/.github/workflows/check-and-build-and-test.yml +++ b/.github/workflows/check-and-build-and-test.yml @@ -34,20 +34,14 @@ jobs: check-and-build: strategy: matrix: - commands: - - build: - name: "Build with minimal versions of direct dependencies" - run: cargo minimal-versions build --direct --verbose - check: - name: "Check with minimal versions of direct dependencies" - run: cargo minimal-versions check --direct --verbose + minimal_or_latest: + - build_command: cargo minimal-versions build --direct --verbose + check_command: cargo minimal-versions check --direct --verbose + job_name_suffix: with minimal versions of direct dependencies - - build: - name: "Build (with latest (typically) versions of dependencies)" - run: cargo build --verbose - check: - name: "Check (with latest (typically) versions of dependencies)" - run: cargo check --verbose + - build_command: cargo build --verbose + check_command: cargo check --verbose + job_name_suffix: (with latest (typically) versions of dependencies) supporteds: - runner: macos-latest @@ -82,7 +76,7 @@ jobs: - runner: windows-latest target: x86_64-pc-windows-msvc - name: Check and build ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }}) + name: Check and build ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }}) ${{ matrix.minimal_or_latest.job_name_suffix }} runs-on: ${{ matrix.supporteds.runner }} timeout-minutes: 5 env: @@ -112,11 +106,11 @@ jobs: shared-key: ${{ matrix.supporteds.target }} cache-on-failure: "true" - - name: ${{ matrix.commands.check.name }} - run: ${{ matrix.commands.check.run }} --target ${{ matrix.supporteds.target }} + - name: Check + run: ${{ matrix.minimal_or_latest.check_command }} --target ${{ matrix.supporteds.target }} - - name: ${{ matrix.commands.build.name }} - run: ${{ matrix.commands.build.run }} --target ${{ matrix.supporteds.target }} + - name: Build + run: ${{ matrix.minimal_or_latest.build_command }} --target ${{ matrix.supporteds.target }} test: strategy: