Skip to content

Commit

Permalink
Moved matrix to separate file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpldgr committed Nov 7, 2024
1 parent ee7e349 commit ec8c6eb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/game_ply_limit2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ on:
branches: [ game_ply_limit ]

jobs:
configure:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4

- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./matrix.json)" >> $GITHUB_OUTPUT

build:
strategy:
matrix:
include:
- {NAME: windows, arch: x86-64, run_os: windows-2022, COMPCXX: g++, COMP: mingw, EXT: .exe}
- {NAME: windows, arch: x86-64-bmi2, run_os: windows-2022, COMPCXX: g++, COMP: mingw, EXT: .exe}
- {NAME: windows, arch: x86-64-modern, run_os: windows-2022, COMPCXX: g++, COMP: mingw, EXT: .exe}
- {NAME: ubuntu, arch: x86-64, run_os: ubuntu-20.04, COMPCXX: g++, COMP: gcc}
- {NAME: ubuntu, arch: x86-64-bmi2, run_os: ubuntu-20.04, COMPCXX: g++, COMP: gcc}
- {NAME: ubuntu, arch: x86-64-modern, run_os: ubuntu-20.04, COMPCXX: g++, COMP: gcc}
- {NAME: macos, arch: x86-64, run_os: macos13, COMPCXX: clang++, COMP: clang}
- {NAME: macos, arch: x86-64-bmi2, run_os: macos13, COMPCXX: clang++, COMP: clang}
- {NAME: macos, arch: x86-64-modern, run_os: macos13, COMPCXX: clang++, COMP: clang}
- {NAME: macos-m1, arch: apple-silicon, run_os: macos14, COMPCXX: clang++, COMP: clang}
needs: configure
runs-on: ${{matrix.run_os}}

strategy:
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
steps:
- uses: actions/checkout@v4

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/matrix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"include": [
{"NAME": "windows", "arch": "x86-64", "run_os": "windows-2022", "COMPCXX": "g++", "COMP": "mingw", "EXT": ".exe"},
{"NAME": "windows", "arch": "x86-64-bmi2", "run_os": "windows-2022", "COMPCXX": "g++", "COMP": "mingw", "EXT": ".exe"},
{"NAME": "windows", "arch": "x86-64-modern", "run_os": "windows-2022", "COMPCXX": "g++", "COMP": "mingw", "EXT": ".exe"},
{"NAME": "ubuntu", "arch": "x86-64", "run_os": "ubuntu-20.04", "COMPCXX": "g++", "COMP": "gcc"},
{"NAME": "ubuntu", "arch": "x86-64-bmi2", "run_os": "ubuntu-20.04", "COMPCXX": "g++", "COMP": "gcc"},
{"NAME": "ubuntu", "arch": "x86-64-modern", "run_os": "ubuntu-20.04", "COMPCXX": "g++", "COMP": "gcc"},
{"NAME": "macos", "arch": "x86-64", "run_os": "macos13", "COMPCXX": "clang++", "COMP": "clang"},
{"NAME": "macos", "arch": "x86-64-bmi2", "run_os": "macos13", "COMPCXX": "clang++", "COMP": "clang"},
{"NAME": "macos", "arch": "x86-64-modern", "run_os": "macos13", "COMPCXX": "clang++", "COMP": "clang"},
{"NAME": "macos-m1", "arch": "apple-silicon", "run_os": "macos14", "COMPCXX": "clang++", "COMP": "clang"}
]
}

0 comments on commit ec8c6eb

Please sign in to comment.