Skip to content

Commit

Permalink
CI: use more configurable targets
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 5, 2025
1 parent f8eb673 commit fc2af98
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/generate-tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,36 @@ on:

jobs:
build_tools:
name: Build all tools for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Build all tools for ${{ matrix.target.os }}
runs-on: ${{ matrix.target.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
target: [
{"os": "ubuntu-latest", "cc": "gcc-14"},
{"os": "macos-latest" },
{"os": "windows-latest"},
]
include:
- os: windows-latest
triplet: x64-windows
- os: ubuntu-latest
triplet: x64-linux
CMAKE_CC: CC=gcc-14
- os: macos-latest
triplet: x64-osx
env:
CMAKE_OPTIONS: -DDEV_MODE=ON
CMAKE_CC: CC=${{ matrix.target.os }}
steps:
- name: list compilers
if: ${{ contains(matrix.os, 'ubuntu') }}
if: ${{ contains(matrix.target.os, 'ubuntu') }}
run: dpkg --list | grep compiler

- name: Get pushed code
uses: actions/checkout@v4

- name: Configure CMake
run: ${{ matrix.CMAKE_CC }} cmake -S . -B _build ${{ env.CMAKE_OPTIONS }}
run: ${{ env.CMAKE_CC }} cmake -S . -B _build ${{ env.CMAKE_OPTIONS }}

- name: Build with CMake
run: cmake --build _build --config Debug --parallel
Expand Down

0 comments on commit fc2af98

Please sign in to comment.