Skip to content

python: include project metadata in pyproject.toml #54

python: include project metadata in pyproject.toml

python: include project metadata in pyproject.toml #54

Workflow file for this run

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: vcpkg install bzip2 zlib liblzma libflac zziplib pcre --triplet x64-windows-static-md && choco install pkgconfiglite -y --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: Setup Windows pkg-config
if: runner.os == 'Windows'
shell: bash
run: |
echo "PKG_CONFIG_PATH=$VCPKG_INSTALLATION_ROOT/installed/x64-windows-static-md/lib/pkgconfig" >> $GITHUB_ENV
echo "CMAKE_PREFIX_PATH=$VCPKG_INSTALLATION_ROOT/installed/x64-windows-static-md" >> $GITHUB_ENV
- 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