chore: macos-15-intel runner on ci (#31419)

This includes fixes from
e229ef18a6
This commit is contained in:
Divy 2025-12-09 08:07:44 +09:00 committed by GitHub
parent 17cdcc288c
commit b18b8347f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 29 additions and 18 deletions

View file

@ -12,7 +12,7 @@ const ubuntuX86XlRunner = "ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04";
const ubuntuARMRunner = "ghcr.io/cirruslabs/ubuntu-runner-arm64:24.04";
const windowsX86Runner = "windows-2022";
const windowsX86XlRunner = "windows-2022-xl";
const macosX86Runner = "macos-13";
const macosX86Runner = "macos-15-intel";
const macosArmRunner = "macos-14";
const selfHostedMacosArmRunner = "ghcr.io/cirruslabs/macos-runner:sonoma";

View file

@ -60,12 +60,12 @@ jobs:
include:
- os: macos
arch: x86_64
runner: macos-13
runner: macos-15-intel
job: test
profile: debug
- os: macos
arch: x86_64
runner: '${{ (!contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'')) && ''ubuntu-24.04'' || ''macos-13'' }}'
runner: '${{ (!contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'')) && ''ubuntu-24.04'' || ''macos-15-intel'' }}'
job: test
profile: release
skip: '${{ !contains(github.event.pull_request.labels.*.name, ''ci-full'') && (github.event_name == ''pull_request'') }}'
@ -765,7 +765,7 @@ jobs:
job: lint
- os: macos
arch: x86_64
runner: macos-13
runner: macos-15-intel
profile: debug
job: lint
- os: windows

4
Cargo.lock generated
View file

@ -5794,9 +5794,9 @@ dependencies = [
[[package]]
name = "libsui"
version = "0.11.0"
version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73ff2746d6f3ea1421944f625fd827c52e0d7e97b91976d4c940c486da38b414"
checksum = "99dc19fe502fbaca89d5607b14a0e301a40af42a14e33afc349e73eaef2bc86f"
dependencies = [
"editpe",
"image",

View file

@ -314,7 +314,7 @@ dprint-plugin-markdown = "=0.20.0"
dprint-plugin-typescript = "=0.95.13"
env_logger = "=0.11.6"
fancy-regex = "=0.14.0"
libsui = "0.11.0"
libsui = "0.12.2"
malva = "=0.12.1"
markup_fmt = "=0.22.0"
open = "5.0.1"

View file

@ -180,10 +180,10 @@ pub fn is_standalone_binary(exe_path: &Path) -> bool {
let Ok(data) = std::fs::read(exe_path) else {
return false;
};
libsui::utils::is_elf(&data)
|| libsui::utils::is_pe(&data)
|| libsui::utils::is_macho(&data)
|| data.is_empty()
}
pub struct WriteBinOptions<'a> {

View file

@ -1,5 +1,6 @@
{
"tempDir": true,
"if": "notMacIntel",
"steps": [{
"args": [
"eval",

View file

@ -1,5 +1,6 @@
{
"tempDir": true,
"if": "notMacIntel",
"steps": [{
"args": "run -A setup.ts",
"output": "[WILDCARD]"

View file

@ -1,11 +1,11 @@
{
"tempDir": true,
"steps": [{
"if": "unix",
"if": "notMacIntel",
"args": "compile --output main main.ts",
"output": "compile.out"
}, {
"if": "unix",
"if": "notMacIntel",
"commandName": "./main",
"args": [],
"output": "main.out"

View file

@ -4,11 +4,11 @@
"args": "run -A setup.js",
"output": "[WILDCARD]"
}, {
"if": "unix",
"if": "notMacIntel",
"args": "compile --allow-read=data --include data --output main main.ts",
"output": "[WILDCARD]"
}, {
"if": "unix",
"if": "notMacIntel",
"commandName": "./main",
"args": [],
"output": "[WILDCARD]",

View file

@ -1,5 +1,6 @@
{
"tempDir": true,
"if": "notMacIntel",
"steps": [{
"args": "install --allow-scripts",
"output": "[WILDCARD]"

View file

@ -3,11 +3,11 @@
// use this so the vfs output is all in the same folder
"canonicalizedTempDir": true,
"steps": [{
"if": "unix",
"if": "notMacIntel",
"args": "compile -A --output main main.ts",
"output": "compile.out"
}, {
"if": "unix",
"if": "notMacIntel",
"commandName": "./main",
"args": [],
"output": "main.out"

View file

@ -4,11 +4,11 @@
"args": "install",
"output": "[WILDCARD]"
}, {
"if": "unix",
"if": "notMacIntel",
"args": "compile --output main main.js",
"output": "compile.out"
}, {
"if": "unix",
"if": "notMacIntel",
"commandName": "./main",
"args": [],
"output": "output.out",

View file

@ -484,6 +484,10 @@ fn should_run(if_cond: Option<&str>) -> bool {
"mac" => cfg!(target_os = "macos"),
"linux" => cfg!(target_os = "linux"),
"notCI" => std::env::var_os("CI").is_none(),
"notMacIntel" => {
cfg!(unix)
&& !(cfg!(target_os = "macos") && cfg!(target_arch = "x86_64"))
}
value => panic!("Unknown if condition: {}", value),
}
} else {

View file

@ -23,9 +23,11 @@
"exitCode": 1,
"output": "node_modules_dir.out"
}, {
"if": "notMacIntel",
"args": "compile --allow-read --output exec package-a/index.mjs",
"output": "compile.out"
}, {
"if": "notMacIntel",
"commandName": "./exec",
"args": [],
"output": "output.out"

View file

@ -48,7 +48,8 @@
"mac",
"linux",
"windows",
"unix"
"unix",
"notMacIntel"
]
},
"output": {
@ -103,7 +104,8 @@
"mac",
"linux",
"windows",
"unix"
"unix",
"notMacIntel"
]
},
"repeat": {