build: optimize the workflow (#331)

This commit is contained in:
ykiko
2025-12-29 09:19:45 +08:00
committed by GitHub
parent 7105e36803
commit 7a29560065
22 changed files with 7160 additions and 7634 deletions

31
.github/workflows/test-cmake.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: cmake
on:
workflow_call:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2025
build_type: RelWithDebInfo
- os: ubuntu-24.04
build_type: Debug
- os: macos-15
build_type: Debug
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
with:
environments: develop
- name: Build
run: pixi run ci-cmake-build ${{ matrix.build_type }}
- name: Test
run: pixi run ci-cmake-test