Skip to content

Merge remote-tracking branch 'origin/main' into fix/main_v3 #8153

Merge remote-tracking branch 'origin/main' into fix/main_v3

Merge remote-tracking branch 'origin/main' into fix/main_v3 #8153

Workflow file for this run

# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI Windows
on:
push:
branches:
- "**"
paths-ignore:
- ".github/workflows/cache_*.yml"
- "docker/dev/**"
- "docs/**"
- ".readthedocs.yml"
- "tutorials/**"
- "**/*.md"
- "**/*.rst"
- "**/*.po"
- "**/*.pot"
pull_request:
branches:
- "**"
paths-ignore:
- ".github/workflows/cache_*.yml"
- "docker/dev/**"
- "docs/**"
- ".readthedocs.yml"
- "tutorials/**"
- "**/*.md"
- "**/*.rst"
- "**/*.po"
- "**/*.pot"
schedule:
# Cron syntax: [minute hour day_of_the_month month day_of_the_week]
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Tests (${{ matrix.build_type }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_type: ["Release"] # Windows CI keeps Release-only to keep runtimes acceptable
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
cache: false
run-install: false
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
disable_annotations: true
- name: Configure environment for compiler cache
shell: powershell
run: |
if ($env:ACTIONS_CACHE_URL) {
echo "SCCACHE_GHA_ENABLED=true" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
} else {
echo "SCCACHE_GHA_ENABLED=false" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
}
echo "DART_COMPILER_CACHE=sccache" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
$ccacheDir = Join-Path $env:RUNNER_TEMP "ccache"
New-Item -ItemType Directory -Force -Path $ccacheDir | Out-Null
echo "CCACHE_BASEDIR=$env:GITHUB_WORKSPACE" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CCACHE_DIR=$ccacheDir" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CCACHE_COMPRESS=true" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CCACHE_MAXSIZE=5G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Lint checks are now centralized to Ubuntu Release build only
# See ci_ubuntu.yml for the single source of lint validation
- name: Test DART (dartpy disabled)
run: |
$ErrorActionPreference = "Stop"
$env:DART_VERBOSE = "ON"
$env:BUILD_TYPE = "${{ matrix.build_type }}"
pixi run test-no-plane OFF
# Skip install on Windows to keep job runtimes within limits; Linux covers install path.