mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-19 14:00:43 +01:00
* FreeBSD CI: run the GPU crates' tests one at a time The FreeBSD VM's software Vulkan driver crashes (SIGSEGV) when several tests create a wgpu device at once. texturecraft-render's lib and headless tests, and earlier texturecraft-automation's, died this way in every FreeBSD run since Nov 6, with no render or dependency change. photocraft already serializes its GPU tests for the same reason; do the same for the crates that open a device. * FreeBSD CI: test the whole workspace one test at a time Excluding the GPU crates from the parallel run changed feature unification, and winit then built without its X11/Wayland backends (compile_error on FreeBSD). Run the whole workspace in one cargo test with --test-threads=1 instead.
42 lines
1.7 KiB
YAML
42 lines
1.7 KiB
YAML
# Builds and tests the workspace on FreeBSD, inside a FreeBSD VM on a Linux runner
|
|
# (GitHub has no FreeBSD runners). GPU tests skip themselves when the VM has no adapter.
|
|
# It then runs packaging/freebsd/package.sh, the script the release job runs, and checks the
|
|
# tarball, so a broken FreeBSD package fails here before it can fail a release. Nothing is
|
|
# uploaded and no secrets are used.
|
|
name: FreeBSD
|
|
|
|
# The VM build takes one to several hours, so it runs nightly on main rather than on every push
|
|
# or dependency change: a drifted dependency still shows up within a day. PRs that change the
|
|
# FreeBSD packaging itself still run it.
|
|
on:
|
|
push:
|
|
branches: [release]
|
|
schedule:
|
|
- cron: "17 2 * * *"
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/freebsd.yml
|
|
- packaging/freebsd/**
|
|
- packaging/env.sh
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: freebsd-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
freebsd:
|
|
# Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos.
|
|
uses: storytold/craft-common-actions/.github/workflows/freebsd.yml@main
|
|
with:
|
|
craft-fonts-ref: aced4137c022f1f587624d48e81ec77e1914a9cc
|
|
# The VM's software Vulkan driver crashes (SIGSEGV) when several tests set up a device at
|
|
# once (photocraft serializes its GPU tests for the same reason), so tests run one at a
|
|
# time. The whole workspace is tested in one command: excluding packages would change
|
|
# feature unification and build winit without its X11/Wayland backends.
|
|
cargo-test-extra-args: "-- --test-threads=1"
|
|
run-package-check: true
|