Skip to content

Commit

Permalink
Don't build when TemporalStasis is added
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Jan 30, 2025
1 parent 599b05d commit dacbdc6
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 3 deletions.
96 changes: 96 additions & 0 deletions web/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ opt-level = 3
[build-dependencies]
copy_to_output = "2.2.0"
build-target = "0.4.0"
rerun_except = "1.0.0"
14 changes: 11 additions & 3 deletions web/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use copy_to_output::copy_to_output_path;
use std::{ffi::OsStr, process::Command, time::SystemTime};

fn main() {
println!("cargo:rerun-if-changed=migrations");

let profile = std::env::var("PROFILE").unwrap();
if profile == "release" {
println!(
Expand Down Expand Up @@ -34,10 +32,20 @@ fn main() {
false
};

let mut rerun_ignores = vec![
"config.yml",
"compose.dev.yaml",
"stasis_version.json",
"static/",
];

if !is_redundant && !is_rust_analyzer {
println!("cargo:rerun-if-changed=TemporalStasis");
build_connector();
} else {
rerun_ignores.push("TemporalStasis/");
}

rerun_except::rerun_except(&rerun_ignores).expect("rerun_except failed");
}

fn build_connector() {
Expand Down
4 changes: 4 additions & 0 deletions web/docker-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo systemctl start docker
docker-compose -f compose.dev.yaml up -d

0 comments on commit dacbdc6

Please sign in to comment.