Skip to content

Commit

Permalink
#97: update gh build job names for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 12, 2024
1 parent b1b5fd2 commit 137b7c2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
}
]
runs-on: ${{ matrix.host.base }}
name: vt-tv build and test (${{ matrix.host.base }}-${{ matrix.host.compiler.cc }}, vtk-${{ matrix.host.vtk }}, py[${{ join(matrix.host.python, ', ') }}])
name: vt-tv build and test (${{ matrix.host.base }}, ${{ matrix.host.compiler.cc }}, vtk-${{ matrix.host.vtk }}, py[${{ join(matrix.host.python, ', ') }}])
env:
VTK_SRC_DIR: /opt/src/vtk
VTK_BUILD_DIR: /opt/build/vtk
Expand Down
43 changes: 34 additions & 9 deletions .github/workflows/build-and-test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,43 @@ jobs:
strategy:
fail-fast: false
matrix:
image:
- ubuntu_22.04-gcc_11-vtk_9.2.2-py_3.all
- ubuntu_22.04-clang_11-vtk_9.2.2-py_3.all
- ubuntu_22.04-gcc_12-vtk_9.3.0-py_3.all
- ubuntu_24.04-gcc_13-vtk_9.3.1-py_3.all
host: [
{
base: ubuntu-22.04,
compiler: { cc: gcc-11 },
python: ['3.8', '3.9', '3.10', '3.11', '3.12'],
vtk: '9.2.2',
image: ubuntu_22.04-gcc_11-vtk_9.2.2-py_3.all
},
{
base: ubuntu-22.04,
compiler: { cc: clang-11 },
python: ['3.8', '3.9', '3.10', '3.11', '3.12'],
vtk: '9.2.2',
image: ubuntu_22.04-clang_11-vtk_9.2.2-py_3.all
},
{
base: ubuntu-22.04,
compiler: { cc: gcc-12 },
python: ['3.8', '3.9', '3.10', '3.11', '3.12'],
vtk: '9.3.0',
image: ubuntu_22.04-gcc_12-vtk_9.3.0-py_3.all
},
{
base: ubuntu-24.04,
compiler: { cc: gcc-13 },
python: ['3.8', '3.9', '3.10', '3.11', '3.12'],
vtk: '9.3.1',
image: ubuntu_24.04-gcc_13-vtk_9.3.1-py_3.all
}
]
env:
OUTPUT_DIR: '/tmp/artifacts'
VT_TV_TESTS_ENABLED: 'ON'
VT_TV_COVERAGE_ENABLED: ${{ matrix.image == 'ubuntu_22.04-gcc_12-vtk_9.3.0-py_3.all' && 'ON' || 'OFF' }} # Coverage only with main test image
VT_TV_COVERAGE_ENABLED: ${{ matrix.host.image == 'ubuntu_22.04-gcc_12-vtk_9.3.0-py_3.all' && 'ON' || 'OFF' }} # Coverage only with main test image
DOCKER_REPOSITORY: lifflander1/vt
DOCKER_TAG: ~
name: vt-tv build and test
name: vt-tv build and test (${{ matrix.host.base }}, ${{ matrix.host.compiler.cc }}, vtk-${{ matrix.host.vtk }}, py[${{ join(matrix.host.python, ', ') }}])
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -56,7 +81,7 @@ jobs:
context: .
file: ./ci/docker/build-and-test-ubuntu.dockerfile
build-args: |
BASE_IMAGE=${{ env.DOCKER_REPOSITORY }}:${{ matrix.image }}
BASE_IMAGE=${{ env.DOCKER_REPOSITORY }}:${{ matrix.host.image }}
VT_TV_TESTS_ENABLED=${{ env.VT_TV_TESTS_ENABLED }}
VT_TV_COVERAGE_ENABLED=${{ env.VT_TV_COVERAGE_ENABLED }}
outputs: type=local,dest=${{ env.OUTPUT_DIR }}
Expand All @@ -65,7 +90,7 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: vt-tv-Artifacts-${{ matrix.image }}
name: vt-tv-Artifacts-${{ matrix.host.image }}
path: ${{ env.OUTPUT_DIR }}

- name: Unit tests
Expand Down

0 comments on commit 137b7c2

Please sign in to comment.