Skip to content

Commit 7adbe24

Browse files
committed
fix(tests): use unknown-platform asset so skip test passes on all runners
CastCodes-arm64.dmg is the correct macOS arm64 asset, so macOS CI correctly picked v0.0.12 rather than skipping it. Use a made-up CastCodes-riscv64.AppImage (not matching any known platform) so the release is skipped on macOS, Windows, and Linux alike.
1 parent e7e97fe commit 7adbe24

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/autoupdate/mod_tests.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ fn test_oss_release_version_skips_releases_without_current_platform_asset() {
305305
draft: false,
306306
prerelease: false,
307307
assets: vec![GithubReleaseAsset {
308-
// Deliberately use a macOS-only asset so this release is
309-
// skipped on Windows and Linux (only macOS should pick it up).
310-
name: "CastCodes-arm64.dmg".to_string(),
308+
// Deliberately use an asset that matches no known platform
309+
// (not macOS arm64, not macOS x86, not Windows, not Linux x86_64)
310+
// so this release is skipped on every CI runner.
311+
name: "CastCodes-riscv64.AppImage".to_string(),
311312
}],
312313
},
313314
GithubRelease {

0 commit comments

Comments
 (0)