mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-04 17:12:13 +00:00
don't build swift on linux
This commit is contained in:
parent
f7b2a73a75
commit
10326779b3
1 changed files with 6 additions and 2 deletions
|
|
@ -275,6 +275,7 @@ mod cli_run {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// This macro does two things.
|
||||
///
|
||||
/// First, it generates and runs a separate test for each of the given
|
||||
|
|
@ -297,17 +298,20 @@ mod cli_run {
|
|||
let file_name = example_file(dir_name, example.filename);
|
||||
|
||||
match example.executable_filename {
|
||||
"form" | "hello-gui" | "breakout" | "ruby" | "swiftui" => {
|
||||
"form" | "hello-gui" | "breakout" | "ruby" => {
|
||||
// Since these require things the build system often doesn't have
|
||||
// (e.g. GUIs open a window, Ruby needs ruby installed, WASM needs a browser)
|
||||
// we do `roc build` on them but don't run them.
|
||||
run_roc_on(&file_name, [CMD_BUILD, OPTIMIZE_FLAG], &[], None);
|
||||
return;
|
||||
}
|
||||
"rocLovesSwift" => {
|
||||
"swiftui" | "rocLovesSwift" => {
|
||||
if cfg!(not(target_os = "macos")) {
|
||||
eprintln!("WARNING: skipping testing example {} because it only works on MacOS.", example.filename);
|
||||
return;
|
||||
} else {
|
||||
run_roc_on(&file_name, [CMD_BUILD, OPTIMIZE_FLAG], &[], None);
|
||||
return;
|
||||
}
|
||||
}
|
||||
"rocLovesWebAssembly" => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue