Skip to content

build(deps): bump actions/checkout from 5 to 6 in the github-actions group #16

build(deps): bump actions/checkout from 5 to 6 in the github-actions group

build(deps): bump actions/checkout from 5 to 6 in the github-actions group #16

# ref: https://github.com/actions/runner-images
name: amd64 Windows CMake
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
# Building using the github runner environement directly.
jobs:
native:
strategy:
matrix:
cmake: [
{name: "VS22", generator: "Visual Studio 17 2022", config: Release},
{name: "VS22", generator: "Visual Studio 17 2022", config: Debug},
]
python: [
{version: '3.11'},
{version: '3.12'},
#{version: '3.13'},
]
fail-fast: false
name: amd64•Windows•${{matrix.cmake.name}}(${{matrix.cmake.config}})•Py${{matrix.python.version}}
runs-on: windows-latest
env:
deps_src_key: amd64_windows_deps_src
deps_build_key: amd64_windows_deps_build_${{matrix.cmake.config}}
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{matrix.python.version}}
- name: Check Python
run: |
python --version
python -m platform
- name: Install python3
run: python3 -m pip install --user mypy setuptools wheel numpy pandas
- name: Add Python binaries to path
run: >
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# CONFIGURING CACHES
- name: Cache CMake dependency source code
uses: actions/cache@v4
with:
key: ${{env.deps_src_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
path: ${{github.workspace}}/build/_deps/*-src
- name: Cache CMake dependency build
uses: actions/cache@v4
with:
key: ${{env.deps_build_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}}
path: |
${{github.workspace}}/build/_deps/*-build
${{github.workspace}}/build/_deps/*-subbuild
- name: Check CMake
run: |
cmake --version
cmake -G || true
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{matrix.cmake.generator}}"
-DCMAKE_CONFIGURATION_TYPES=${{matrix.cmake.config}}
-DCMAKE_INSTALL_PREFIX=install
- name: Build
run: >
cmake --build build
--config ${{matrix.cmake.config}}
--target ALL_BUILD
-v -j2
- name: Test
run: >
cmake --build build
--config ${{matrix.cmake.config}}
--target RUN_TESTS
-v
- name: Install
run: >
cmake --build build
--config ${{matrix.cmake.config}}
--target INSTALL
-v
amd64_windows_cmake:
runs-on: ubuntu-latest
needs: native
steps:
- uses: actions/checkout@v6