Skip to content

Commit

Permalink
build: restructure build matrixes
Browse files Browse the repository at this point in the history
add architecture to build matrixes to simplify multiple architectures configuration
  • Loading branch information
jmalak committed Jan 21, 2025
1 parent a2b3f57 commit 2cc8f88
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,20 @@ jobs:
matrix:
include:
- owtools: 'GCC'
arch: 'x64'
image: 'ubuntu-latest'
tools: 'gcc'
title: 'x64 gcc'
- owtools: 'CLANG'
arch: 'x64'
image: 'ubuntu-latest'
tools: 'clang'
title: 'x64 clang'
name: Linux ${{ matrix.title }}
name: Linux ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/cibldlnx.yml"
with:
arch: 'x64'
arch: ${{ matrix.arch }}
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: 'ubuntu-latest'
image: ${{ matrix.image }}
owdebug: ${{ vars.OWDEBUG }}
Windows:
needs:
Expand All @@ -90,15 +92,16 @@ jobs:
matrix:
include:
- owtools: 'VISUALC'
arch: 'x64'
image: 'windows-2022'
tools: 'vs2022'
title: 'x64 vs2022'
name: Windows ${{ matrix.title }}
name: Windows ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/cibldnt.yml"
with:
arch: 'x64'
arch: ${{ matrix.arch }}
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: 'windows-2022'
image: ${{ matrix.image }}
owdebug: ${{ vars.OWDEBUG }}
OSX:
needs: start-start
Expand All @@ -108,18 +111,18 @@ jobs:
- owtools: 'CLANG'
arch: 'x64'
image: 'macos-13'
tools: 'clang'
relpath: 'rel bino64'
title: 'x64 clang'
- owtools: 'CLANG'
arch: 'a64'
image: 'macos-14'
tools: 'clang'
relpath: 'rel armo64'
title: 'arm64 clang'
name: OSX ${{ matrix.title }}
name: OSX ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/cibldosx.yml"
with:
arch: ${{ matrix.arch }}
tools: 'clang'
tools: ${{ matrix.tools }}
relpath: ${{ matrix.relpath }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
matrix:
include:
- owtools: 'GCC'
tools: 'gcc'
arch: 'x64'
image: 'ubuntu-20.04'
title: 'x64 gcc'
name: Linux ${{ matrix.title }}
tools: 'gcc'
name: Linux ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/rel-lnx.yml"
with:
arch: 'x64'
arch: ${{ matrix.arch }}
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
Expand All @@ -48,13 +48,13 @@ jobs:
matrix:
include:
- owtools: 'VISUALC'
tools: 'vs2019'
arch: 'x64'
image: 'windows-2019'
title: 'x64 vs2019'
name: Windows ${{ matrix.title }}
tools: 'vs2019'
name: Windows ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/rel-nt.yml"
with:
arch: 'x64'
arch: ${{ matrix.arch }}
tools: ${{ matrix.tools }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
Expand All @@ -68,18 +68,18 @@ jobs:
- owtools: 'CLANG'
arch: 'x64'
image: 'macos-13'
tools: 'clang'
relpath: 'rel bino64'
title: 'x64 clang'
- owtools: 'CLANG'
arch: 'a64'
image: 'macos-14'
tools: 'clang'
relpath: 'rel armo64'
title: 'arm64 clang'
name: OSX ${{ matrix.title }}
name: OSX ${{ matrix.arch }} ${{ matrix.tools }}
uses: "./.github/workflows/rel-osx.yml"
with:
arch: ${{ matrix.arch }}
tools: 'clang'
tools: ${{ matrix.tools }}
relpath: ${{ matrix.relpath }}
owtools: ${{ matrix.owtools }}
image: ${{ matrix.image }}
Expand Down

0 comments on commit 2cc8f88

Please sign in to comment.