cmake: modernize CMake infrastructure; adds modules, bindings; build Windows wheels #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| cmake-build-test: | |
| name: CMake on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| deps: sudo apt-get update && sudo apt-get install -y cmake bzip2 gzip xz-utils flac zip unzip libbz2-dev liblzma-dev libflac-dev libpcre3-dev libzzip-dev | |
| - os: macos-latest | |
| deps: brew install --quiet cmake bzip2 flac xz pcre libzzip | |
| - os: windows-latest | |
| deps: choco install cmake --no-progress | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Python dependencies | |
| run: python -m pip install numpy>2 | |
| - name: Install system dependencies | |
| run: ${{ matrix.deps }} | |
| - name: Configure CMake | |
| working-directory: cmake | |
| run: cmake -B build -DBUILD_PYTHON=ON -DGD_TEST=ON | |
| - name: Build | |
| working-directory: cmake | |
| run: cmake --build build --config Release | |
| - name: Run tests | |
| working-directory: cmake | |
| run: ctest --test-dir build --output-on-failure --build-config Release --no-tests=error |