Skip to content

refactor: compiler-cmd (#92) #49

refactor: compiler-cmd (#92)

refactor: compiler-cmd (#92) #49

Workflow file for this run

name: test
on:
push:
branches: [main]
paths:
- ".github/workflows/xmake.yml"
- "src/**"
- "tests/**"
- "api/**"
- "xmake.lua"
- "pixi.toml"
pull_request:
branches: [main]
paths:
- ".github/workflows/xmake.yml"
- "src/**"
- "tests/**"
- "api/**"
- "xmake.lua"
- "pixi.toml"
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [windows-2025, ubuntu-24.04, macos-15]
concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.os }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v3.0.8
actions-cache-folder: ".xmake-cache"
actions-cache-key: ${{ matrix.os }}
package-cache: true
package-cache-key: ${{ matrix.os }}-pixi
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.9.4
with:
pixi-version: v0.65.0
activate-environment: false
cache: true
locked: true
- name: Build (debug)
run: |
pixi run -e dev ci-build debug
- name: Build (release)
run: |
pixi run -e dev ci-build release