Skip to content

Commit

Permalink
fix: test ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor committed Mar 13, 2024
1 parent 0704e17 commit 6679fa0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:

jobs:
ci-rs:
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.env
**/__pycache__/
/target
9 changes: 9 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dotenvy = "0.15.7"
gpui = { git = "https://github.com/zed-industries/zed", version = "0.1.0" }
log = "0.4.21"
pretty_env_logger = "0.5.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"

[[bin]]
name = "os1"
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ impl Render for ImageShowcase {
.size_full()
.justify_center()
.items_center()
.gap_8()
.bg(rgb(0xFFFFFF))
.gap_4()
.bg(rgb(0x1F2126))
.text_color(rgb(0xffffff))
.child(ImageContainer::new(
"Image loaded from a local file",
self.local_resource.clone(),
Expand All @@ -59,6 +60,8 @@ impl Render for ImageShowcase {
}

fn main() {
dotenvy::dotenv().expect(".env file not found");

pretty_env_logger::env_logger::init();

App::new().run(|cx: &mut AppContext| {
Expand All @@ -69,5 +72,6 @@ fn main() {
remote_resource: "https://picsum.photos/512/512".into(),
})
});
// cx.open_url("https://google.com");
});
}

0 comments on commit 6679fa0

Please sign in to comment.