Skip to content

Commit

Permalink
Do not build entire workspace for static Spin builds
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
  • Loading branch information
rylev committed Dec 14, 2023
1 parent f3912c5 commit b15fac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
rust-cache: true

- name: Cargo Build
run: cross build --target x86_64-unknown-linux-musl --workspace --release --all-targets --features openssl/vendored
run: cross build --target x86_64-unknown-linux-musl --release --features openssl/vendored
env:
CARGO_INCREMENTAL: 0
BUILD_SPIN_EXAMPLES: 0
Expand All @@ -113,7 +113,7 @@ jobs:
rust-cache: true

- name: Cargo Build
run: cross build --target aarch64-unknown-linux-musl --workspace --release --all-targets --features openssl/vendored
run: cross build --target aarch64-unknown-linux-musl --release --features openssl/vendored
env:
CARGO_INCREMENTAL: 0
BUILD_SPIN_EXAMPLES: 0
Expand Down
4 changes: 2 additions & 2 deletions tests/runtime-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Spin {
stderr,
port,
};
for _ in 0..40 {
for _ in 0..80 {
match std::net::TcpStream::connect(format!("127.0.0.1:{port}")) {
Ok(_) => return Ok(spin),
Err(e) => {
Expand All @@ -267,7 +267,7 @@ impl Spin {
std::thread::sleep(std::time::Duration::from_millis(250));
}
anyhow::bail!(
"`spin up` did not start server or error after 10 seconds. stderr:\n\t{}",
"`spin up` did not start server or error after 20 seconds. stderr:\n\t{}",
spin.stderr.output_as_str().unwrap_or("<non-utf8>")
)
}
Expand Down

0 comments on commit b15fac9

Please sign in to comment.