From 66792a615250391c6ab90d09dc8e2463a21483bc Mon Sep 17 00:00:00 2001 From: lkbddh <204492431+lkbddh@users.noreply.github.com> Date: Sat, 3 Oct 2026 23:01:29 -0600 Subject: [PATCH 1/2] ci: install the oldest supported Rust under the name the jobs use The jobs name their toolchain 1.93, which overrides rust-toolchain.toml, but the action installed 1.93.1 with rustfmt and clippy. Rustup then fetched a bare 1.93 for the jobs, so `cargo fmt` was missing and the first run of `ci` failed. Each job now installs 1.93 itself, with the components it needs. --- .github/workflows/ci.yml | 5 +++-- .github/workflows/release.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c949bb..8bbd2c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,12 +6,13 @@ jobs: validate: runs-on: ubuntu-24.04 env: + # The oldest supported Rust (`rust-version`), named as it is installed below, so rust-toolchain.toml's stable + # does not apply. RUSTUP_TOOLCHAIN: "1.93" steps: - uses: actions/checkout@v4 - run: sudo apt-get update && sudo apt-get install -y just pkg-config libxkbcommon-dev libwayland-dev desktop-file-utils appstream dbus dpkg-dev - - uses: dtolnay/rust-toolchain@1.93 - with: { components: "rustfmt, clippy" } + - run: rustup toolchain install 1.93 --profile minimal --component rustfmt,clippy --no-self-update - uses: Swatinem/rust-cache@v2 - run: rustc --version - run: just validate diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fd1e37..48e3571 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo apt-get update && sudo apt-get install -y just pkg-config libxkbcommon-dev libwayland-dev dpkg-dev - - uses: dtolnay/rust-toolchain@1.93 + - run: rustup toolchain install 1.93 --profile minimal --no-self-update - uses: Swatinem/rust-cache@v2 - run: just build && just deb - uses: actions/upload-artifact@v4 From 24a8c99be7e3ef2c0e24aaa18e1b2e2a5e130cc3 Mon Sep 17 00:00:00 2001 From: lkbddh <204492431+lkbddh@users.noreply.github.com> Date: Sat, 3 Oct 2026 23:08:46 -0600 Subject: [PATCH 2/2] ci: lay out text in COSMIC's own fonts The layout tests measure text in the fonts COSMIC uses, Open Sans and Noto Sans Mono. The runner had neither, and its fallback font is wide enough to wrap "Use Signpost" in the smallest settings window, so one test failed on CI alone. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bbd2c4..3d5f53c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,8 @@ jobs: RUSTUP_TOOLCHAIN: "1.93" steps: - uses: actions/checkout@v4 - - run: sudo apt-get update && sudo apt-get install -y just pkg-config libxkbcommon-dev libwayland-dev desktop-file-utils appstream dbus dpkg-dev + # The layout tests measure text in COSMIC's own interface fonts, Open Sans and Noto Sans Mono. + - run: sudo apt-get update && sudo apt-get install -y just pkg-config libxkbcommon-dev libwayland-dev desktop-file-utils appstream dbus dpkg-dev fonts-open-sans fonts-noto-mono - run: rustup toolchain install 1.93 --profile minimal --component rustfmt,clippy --no-self-update - uses: Swatinem/rust-cache@v2 - run: rustc --version