Files
Anees Iqbal 0dc2233a33
CI / Linux, cargo xtask check (push) Canceled after 0s
CI / Linux, make check-ctl (push) Canceled after 0s
CI / Linux, rustdoc (push) Canceled after 0s
CI / Linux, QEMU and its unit tests (push) Canceled after 0s
CI / Linux, device tests on lavapipe (push) Canceled after 0s
CI / macOS, cargo xtask check --lints (push) Canceled after 0s
CI / macOS, cargo xtask check --tests (push) Canceled after 0s
CI / macOS, make check-ctl (push) Canceled after 0s
CI / macOS, rustdoc (push) Canceled after 0s
CI / macOS, guest tests (push) Canceled after 0s
CI / Windows, clippy and tests (push) Canceled after 0s
CI / Windows, make check-ctl (push) Canceled after 0s
👷 Run CI on pushes to development and master alone
The workflow ran on pushes to its own branch, steelbrain/ci-merge, while the
batch was brought up; the batch merges now, and that branch's trigger goes with
it. Pull requests and runs by hand stay.

(cherry picked from commit c8a16c0c4b65b3c8261543d0d5d74a196e94d891)
2026-12-03 18:38:41 -08:00

519 lines
23 KiB
YAML

# CI on GitHub's runners: the checks that need no GPU and no guest, on Linux, macOS and Windows
# (docs/development.md, "CI"). The lab's checks (AGENTS.md, "Checking a change") stay the gate for
# a merge; this is a check beside them.
#
# The runners have no GPU, so the tests run under nextest's `ci` profile (.config/nextest.toml):
# every test but those that make an rt device, which run in the lavapipe job, on Mesa's lavapipe,
# and nowhere else here. The tests `#[ignore]` keeps for a hardware host stay ignored.
#
# What a job reaches: GitHub (this repository, vendor/qemu's fork at its gitlink, metal2vulkan at
# the commit Cargo.toml pins, the actions below by commit, cargo-nextest's release, Homebrew's
# bottles), crates.io, Rust's toolchain server for the toolchain rust-toolchain.toml pins, and the
# distributions' packages each job names (Ubuntu's, MSYS2's, and in the lavapipe job, Arch Linux's
# of the date metal2vulkan's image pins). QEMU's build takes its three meson subprojects from
# QEMU's mirrors on GitHub, at the commits their wraps name.
name: CI
on:
push:
branches: [development, master]
pull_request:
workflow_dispatch:
permissions:
contents: read
# One run per ref at a time. A new run of a pull request (refs/pull/N/merge) or of any branch but
# development and master cancels that ref's run in progress; on those two it waits for the run in
# progress to end instead (GitHub keeps one waiting run a ref, the newest).
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/development' && github.ref != 'refs/heads/master' }}
env:
# The tests a runner without a GPU runs, for `cargo xtask check` and every nextest run below.
NEXTEST_PROFILE: ci
# The features `cargo xtask check` tests with (xtask/src/main.rs, TESTED_FEATURES).
TESTED_FEATURES: reims-vgpu-vulkan/testkit,reims-vgpu/testkit,reims-vgpu/vulkan,reims-vgpu-c/vulkan
# The cargo-nextest the lab runs.
NEXTEST_VERSION: 0.9.151
# The cbindgen the committed header is made with (xtask/src/header.rs, CBINDGEN_VERSION).
CBINDGEN_VERSION: 0.29.4
# Ubuntu's packages a build of the library on Linux needs beyond the image's: SDL3's video, which
# the window crate builds from its source (CMake, and the X11, Wayland, xkbcommon and EGL
# headers), as scripts/install-ctl.sh installs them.
LIBRARY_APT: >-
cmake clang libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxfixes-dev
libxss-dev libxtst-dev libxkbcommon-dev libwayland-dev libwayland-bin libdecor-0-dev libegl-dev
libgl-dev libdrm-dev libgbm-dev libdbus-1-dev libudev-dev
# The cache's bound: rust-cache saves on development alone, and a job whose target directories
# hold more than this saves cargo's home alone (the last step of each job).
CACHE_TARGET_MAX_GIB: 4
jobs:
linux-check:
name: Linux, cargo xtask check
runs-on: ubuntu-26.04
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install packages
run: |
read -ra packages <<< "$LIBRARY_APT"
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${packages[@]}"
- name: Install Rust
run: rustup toolchain install
- uses: taiki-e/install-action@43dc658ea8a4fa76c68a84c0acd17c34169b6e2a # v2.90.12
with:
tool: cargo-nextest@${{ env.NEXTEST_VERSION }}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
- name: Install cbindgen
run: cargo install --locked cbindgen --version "$CBINDGEN_VERSION"
# The lab's check: the lints, the records of the prebuilt ROM and kext sets, rustfmt, clippy
# (Linux and x86_64-pc-windows-gnullvm), the hooks, the tests and the doc-tests. No core
# dumps: the death tests crash on purpose (AGENTS.md, "The video crates' checks").
- name: cargo xtask check
run: |
ulimit -c 0
cargo xtask check
- name: Bound the cache
if: ${{ !cancelled() }}
run: &bound |
kib=$({ du -sk target crates/*/target 2>/dev/null || true; } | awk '{s += $1} END {print s + 0}')
echo "target directories: $((kib / 1024)) MiB, bound ${CACHE_TARGET_MAX_GIB} GiB"
if [ "$GITHUB_REF" = refs/heads/development ] && [ "$kib" -gt $((CACHE_TARGET_MAX_GIB * 1024 * 1024)) ]; then
rm -rf target crates/*/target
echo "over the bound: the cache saves cargo's home alone"
fi
linux-ctl:
name: Linux, make check-ctl
runs-on: ubuntu-26.04
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# MinGW's gcc and ar, for the C ring's build script compiles in clippy for
# x86_64-pc-windows-gnullvm; clang, for the Ambrosia module reims-ctl's build makes.
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 clang
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: |
crates/reims-ctl -> target
crates/reims-restore -> target
save-if: ${{ github.ref == 'refs/heads/development' }}
# rustfmt, clippy, clippy for x86_64-pc-windows-gnullvm and the tests, in each of reims-ctl's
# two workspaces.
- name: make check-ctl
run: make check-ctl
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
linux-doc:
name: Linux, rustdoc
runs-on: ubuntu-26.04
timeout-minutes: 120
env:
RUSTDOCFLAGS: -D warnings
# `cargo xtask check`'s CROSS_CHECK_FEATURES: the tested features, with SDL's sources unbuilt.
DOC_FEATURES: reims-vgpu-vulkan/testkit,reims-vgpu/testkit,reims-vgpu/vulkan,reims-vgpu-c/vulkan,reims-vgpu-window/sdl-no-link
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
# The workspace's docs with its private items, warnings denied, for Linux and for Windows.
- name: rustdoc for Linux
run: cargo doc --workspace --no-deps --document-private-items --keep-going --features "$DOC_FEATURES"
- name: rustdoc for x86_64-pc-windows-gnullvm
if: ${{ !cancelled() }}
run: cargo doc --workspace --no-deps --document-private-items --keep-going --target x86_64-pc-windows-gnullvm --features "$DOC_FEATURES"
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
linux-qemu:
name: Linux, QEMU and its unit tests
runs-on: ubuntu-26.04
timeout-minutes: 120
env:
# The fork's tests the lab runs for it (forkunit): unit tests under tests/unit, and qtests
# under tests/qtest, which run against this build's qemu-system-x86_64.
FORK_TESTS: >-
unit/test-cutils unit/test-dsound-ring unit/test-audio-rate unit/test-whpx-mmio
unit/test-reims-pointer qtest/virtio-pci-caps-test qtest/usb-hcd-xhci-test
steps:
# vendor/qemu alone, at its gitlink, from the fork's public repository; none of QEMU's own
# submodules.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: true
# QEMU's build tools and the libraries it links, as scripts/install-ctl.sh installs them.
- name: Install packages
run: |
read -ra packages <<< "$LIBRARY_APT"
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${packages[@]}" \
build-essential pkg-config python3 python3-venv ninja-build flex bison bzip2 binutils \
libglib2.0-dev libpixman-1-dev libslirp-dev zlib1g-dev libfdt-dev libpipewire-0.3-dev \
libpulse-dev libasound2-dev libusb-1.0-0-dev libspice-server-dev libgnutls28-dev \
libgtk-3-dev
# configure fetches keycodemapdb, berkeley-softfloat-3 and berkeley-testfloat-3, at the
# commits their wraps name, from QEMU's mirrors on GitHub, which hold the same commits.
- name: Fetch QEMU's subprojects from GitHub
run: git config --global url.https://github.com/qemu/.insteadOf https://gitlab.com/qemu-project/
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
# The library's dist tree, then qemu-system-x86_64 with reims-graphics-pci linked on it.
- name: make qemu
run: make qemu
- name: The fork's unit tests and qtests
run: |
ulimit -c 0
cd build/qemu
targets=()
for t in $FORK_TESTS; do targets+=("tests/$t"); done
ninja "${targets[@]}"
failed=()
for t in $FORK_TESTS; do
echo "::group::$t"
if [ "${t%%/*}" = qtest ]; then
QTEST_QEMU_BINARY=./qemu-system-x86_64 timeout 300 "./tests/$t" --tap -k || failed+=("$t")
else
timeout 300 "./tests/$t" --tap -k || failed+=("$t")
fi
echo "::endgroup::"
done
if [ ${#failed[@]} -gt 0 ]; then
echo "::error::failed: ${failed[*]}"
exit 1
fi
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
# The device tests, the ones the `ci` profile leaves out, on Mesa's lavapipe in metal2vulkan's
# lavapipe image at the commit Cargo.toml pins (its scripts/lavapipe-image: Arch Linux's packages
# of one archive date, the bootstrap tarball checked against its sha256). The tests are built on
# the runner and run in the image, with no network. The tests .github/lavapipe-expected-failures
# names, each under its reason, must fail there, and every other must pass
# (.github/lavapipe-tests.sh).
linux-lavapipe:
name: Linux, device tests on lavapipe
runs-on: ubuntu-26.04
timeout-minutes: 150
env:
# What the job adds to metal2vulkan's image (the step after its build).
LAVAPIPE_EXTRAS: gcc git
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install packages
run: |
read -ra packages <<< "$LIBRARY_APT"
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${packages[@]}"
- name: Install Rust
run: rustup toolchain install
- uses: taiki-e/install-action@43dc658ea8a4fa76c68a84c0acd17c34169b6e2a # v2.90.12
with:
tool: cargo-nextest@${{ env.NEXTEST_VERSION }}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
# metal2vulkan's checkout at the pinned commit, as cargo fetched it.
- name: Find metal2vulkan's lavapipe image
id: image
run: |
manifest=$(cargo metadata --format-version 1 |
python3 -I -c 'import json, sys; print(next(p["manifest_path"] for p in json.load(sys.stdin)["packages"] if p["name"] == "metal2vulkan-runtime"))')
dir=$(dirname "$(dirname "$(dirname "$manifest")")")/scripts/lavapipe-image
[ -f "$dir/lavapipe-image" ] || { echo "::error::no lavapipe image in $dir"; exit 1; }
echo "dir=$dir" >> "$GITHUB_OUTPUT"
pin=$(sha256sum < "$dir/pin" | cut -c1-16)
echo "pin=$pin" >> "$GITHUB_OUTPUT"
echo "key=lavapipe-image-$pin-${LAVAPIPE_EXTRAS// /-}" >> "$GITHUB_OUTPUT"
# The image's downloads, with the packages the step after its build adds.
- name: Restore the image's downloads
id: downloads
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/m2v-lavapipe-image
key: ${{ steps.image.outputs.key }}
restore-keys: lavapipe-image-${{ steps.image.outputs.pin }}
- name: Build the image
timeout-minutes: 90
env:
IMAGE: ${{ steps.image.outputs.dir }}
run: bash "$IMAGE/lavapipe-image" ensure
# The C compiler the C API's harness tests run and the git the build stamp's test runs, which
# the image's pin names neither of: installed into the image the build made, from the pin's
# own archive date, through the build's pacman.conf, package cache and databases, and kept
# under the same tag, which the run below uses.
- name: Add cc and git to the image
env:
IMAGE: ${{ steps.image.outputs.dir }}
run: |
read -ra extras <<< "$LAVAPIPE_EXTRAS"
date=$(sed -n 's/^date=//p' "$IMAGE/pin")
cache=$HOME/.cache/m2v-lavapipe-image
image=$(docker images --format '{{.Repository}}:{{.Tag}}' | sed -n '/^m2v-lavapipe:/p')
[ -n "$image" ] && [ "$(wc -l <<< "$image")" = 1 ] || { echo "::error::not one lavapipe image: $image"; exit 1; }
# shellcheck disable=SC2016 # the container's bash expands them
docker run --name ci-lavapipe-extras \
-v "$cache/pkg:/var/cache/pacman/pkg" -v "$cache/sync-$date:/var/lib/pacman/sync" \
-v "$cache/pacman.conf:/etc/pacman.conf:ro" "$image" bash -euc '
owner=$1
shift
pacman -S --noconfirm --needed "$@"
yes | pacman -Sc >/dev/null
chown -R "$owner" /var/cache/pacman/pkg /var/lib/pacman/sync
' bash "$(id -u):$(id -g)" "${extras[@]}"
docker commit ci-lavapipe-extras "$image" >/dev/null
docker rm ci-lavapipe-extras >/dev/null
bash "$IMAGE/lavapipe-image" run -- bash -c 'cc --version | head -1 && git --version'
- name: Save the image's downloads
if: steps.downloads.outputs.cache-hit != 'true' && github.event_name == 'push'
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/m2v-lavapipe-image
key: ${{ steps.image.outputs.key }}
- name: Build the tests
run: cargo nextest archive --workspace --features "$TESTED_FEATURES" --archive-file "$RUNNER_TEMP/tests.tar.zst"
- name: Run the device tests on lavapipe
env:
IMAGE: ${{ steps.image.outputs.dir }}
run: |
bash "$IMAGE/lavapipe-image" run --read "$GITHUB_WORKSPACE" \
--read "$RUNNER_TEMP/tests.tar.zst" --env LP_NUM_THREADS=1 -- \
bash "$GITHUB_WORKSPACE/.github/lavapipe-tests.sh" "$RUNNER_TEMP/tests.tar.zst" \
"$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/.github/lavapipe-expected-failures"
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
# `cargo xtask check` in two jobs, its lints and its tests (`--lints`, `--tests`): the whole
# check ran past an hour on the macos-26 runner.
macos-check:
name: macOS, cargo xtask check --lints
runs-on: macos-26
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# The image's Xcode carries its Metal toolchain, which the Vulkan crate's build compiles its
# metallibs with on a Mac; nothing of Apple's is fetched here.
- name: Xcode's Metal compiler
run: xcrun -sdk macosx metal --version
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
- name: Install cbindgen
run: cargo install --locked cbindgen --version "$CBINDGEN_VERSION"
# The lab's check on a Mac but its tests: also clippy for Linux.
- name: cargo xtask check --lints
run: cargo xtask check --lints
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
macos-test:
name: macOS, cargo xtask check --tests
runs-on: macos-26
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Xcode's Metal compiler
run: xcrun -sdk macosx metal --version
# The threads a process and a user may have here: the tests start a few thousand at once.
- name: Thread limits
run: |
sysctl kern.num_taskthreads kern.maxprocperuid hw.ncpu hw.memsize
ulimit -u
- name: Install Rust
run: rustup toolchain install
- uses: taiki-e/install-action@43dc658ea8a4fa76c68a84c0acd17c34169b6e2a # v2.90.12
with:
tool: cargo-nextest@${{ env.NEXTEST_VERSION }}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
# The lab's tests on a Mac: also core's tests as x86_64-apple-darwin under Rosetta, which
# the image installs.
- name: cargo xtask check --tests
run: cargo xtask check --tests
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
macos-ctl:
name: macOS, make check-ctl
runs-on: macos-26
timeout-minutes: 120
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# MinGW's gcc and ar, for the C ring's build script compiles in clippy for
# x86_64-pc-windows-gnullvm.
- name: Install mingw-w64
run: brew install mingw-w64
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: |
crates/reims-ctl -> target
crates/reims-restore -> target
save-if: ${{ github.ref == 'refs/heads/development' }}
- name: make check-ctl
run: make check-ctl
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
macos-doc:
name: macOS, rustdoc
runs-on: macos-26
timeout-minutes: 120
env:
RUSTDOCFLAGS: -D warnings
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust
run: rustup toolchain install
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
- name: rustdoc
run: cargo doc --workspace --no-deps --all-features --document-private-items
- name: Bound the cache
if: ${{ !cancelled() }}
run: *bound
# The guest's kexts, loader and Metal bundle: their own tests, with Xcode and its Metal
# compiler, which the image carries. The bundle builds against the macOS 27 SDK (it names its
# Metal types, MTLTensorPlaneType among them), so the job runs on the Xcode 27 image, macOS 27,
# with Xcode 27.2, the lab's. Rebuilding the prebuilt kext sets stays in the lab.
macos-guest:
name: macOS, guest tests
runs-on: xcode-27
timeout-minutes: 120
env:
DEVELOPER_DIR: /Applications/Xcode_27.2.app/Contents/Developer
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Xcode's Metal compiler
run: xcrun -sdk macosx metal --version
- name: make -C guest test
run: make -C guest test
# Windows, in MSYS2's CLANG64 with the pinned nightly's x86_64-pc-windows-gnullvm host
# toolchain, as scripts/install-ctl.sh builds there.
windows:
name: Windows, clippy and tests
runs-on: windows-2025
timeout-minutes: 120
defaults:
run:
shell: msys2 {0}
env:
CC: clang
CXX: clang++
AR: llvm-ar
CC_x86_64_pc_windows_gnullvm: clang
CXX_x86_64_pc_windows_gnullvm: clang++
AR_x86_64_pc_windows_gnullvm: llvm-ar
CMAKE_GENERATOR: Ninja
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: msys2/setup-msys2@3c51bf698df1e37b2261f53cb67797b97761185c # v2.34.0
with:
msystem: CLANG64
path-type: inherit
install: >-
make diffutils mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-lld
mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-ninja
- name: Install Rust
run: |
channel=$(sed -n 's/^channel *= *"\([^"]*\)".*/\1/p' rust-toolchain.toml)
echo "RUSTUP_TOOLCHAIN=$channel-x86_64-pc-windows-gnullvm" >> "$GITHUB_ENV"
rustup toolchain install --profile minimal --component clippy,rustfmt "$channel-x86_64-pc-windows-gnullvm"
- uses: taiki-e/install-action@43dc658ea8a4fa76c68a84c0acd17c34169b6e2a # v2.90.12
with:
tool: cargo-nextest@${{ env.NEXTEST_VERSION }}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
save-if: ${{ github.ref == 'refs/heads/development' }}
# The two clippy runs of `cargo xtask check` on a Windows host.
- name: clippy, every feature
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: clippy, the tested features
if: ${{ !cancelled() }}
run: cargo clippy --workspace --all-targets --no-default-features --features "$TESTED_FEATURES" -- -D warnings
# The library's crates and their tested features, as scripts/internal/windows-tests.sh runs
# them on the lab's Windows host.
- name: Tests
if: ${{ !cancelled() }}
run: |
cargo nextest run --target x86_64-pc-windows-gnullvm --no-fail-fast --features "$TESTED_FEATURES" \
-p reims-vgpu-graphics -p reims-vgpu-vulkan -p reims-vgpu-window -p reims-vgpu -p reims-vgpu-c
- name: Bound the cache
if: ${{ !cancelled() }}
shell: bash
run: *bound
windows-ctl:
name: Windows, make check-ctl
runs-on: windows-2025
timeout-minutes: 120
defaults:
run:
shell: msys2 {0}
env:
CC: clang
CXX: clang++
AR: llvm-ar
CC_x86_64_pc_windows_gnullvm: clang
CXX_x86_64_pc_windows_gnullvm: clang++
AR_x86_64_pc_windows_gnullvm: llvm-ar
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: msys2/setup-msys2@3c51bf698df1e37b2261f53cb67797b97761185c # v2.34.0
with:
msystem: CLANG64
path-type: inherit
install: >-
make diffutils mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-lld
- name: Install Rust
run: |
channel=$(sed -n 's/^channel *= *"\([^"]*\)".*/\1/p' rust-toolchain.toml)
echo "RUSTUP_TOOLCHAIN=$channel-x86_64-pc-windows-gnullvm" >> "$GITHUB_ENV"
rustup toolchain install --profile minimal --component clippy,rustfmt "$channel-x86_64-pc-windows-gnullvm"
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: |
crates/reims-ctl -> target
crates/reims-restore -> target
save-if: ${{ github.ref == 'refs/heads/development' }}
# rustfmt, clippy (this host's, x86_64-pc-windows-gnullvm) and the tests, in each of
# reims-ctl's two workspaces.
- name: make check-ctl
run: make check-ctl
- name: Bound the cache
if: ${{ !cancelled() }}
shell: bash
run: *bound