Skip to content

Commit

Permalink
- fix: add uv to github runner (#81)
Browse files Browse the repository at this point in the history
* - fix: add uv to github runner

* - ci: extended timeout

* - fix: uv installation

* - fix: copy assets

* - fix: import dep test in python
  • Loading branch information
agallardol authored Dec 9, 2024
1 parent 09178ac commit f64d36b
Show file tree
Hide file tree
Showing 10 changed files with 250 additions and 51 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
check:
runs-on: ubuntu-22.04
environment: development
timeout-minutes: 7
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -31,6 +31,9 @@ jobs:
with:
deno-version: v2.x

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Cache cargo assets
id: cache
uses: actions/cache@v4
Expand Down
69 changes: 49 additions & 20 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"tasks": {
"shinkai-viem-bundler": "deno run --allow-read --allow-env --allow-write --allow-run scripts/shinkai-viem-bundler.ts",
"tool-bundler": "deno run --allow-read --allow-env --allow-write --allow-ffi --allow-sys --allow-net scripts/tool-bundler.ts",
"attach-shinkai-viem": "deno run --allow-read --allow-write scripts/attach-shinkai-viem.ts",
"copy-deno": "deno run --allow-read --allow-write scripts/copy-deno.ts"
"attach-shinkai-viem": "deno run --allow-read --allow-write scripts/attach-shinkai-viem.ts"
},
"lint": {
"rules": {
Expand Down
5 changes: 4 additions & 1 deletion libs/shinkai-tools-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ once_cell = { version = "1.20.2" }
env_logger = "0.11.5"
anyhow = { version = "1.0.93" }
chrono = { version = "0.4.38" }
whoami = "1.5"
tar = "0.4"
flate2 = "1.0"

[dev-dependencies]
rstest = "0.23.0"
Expand All @@ -44,6 +45,8 @@ glob = "0.3"
reqwest = { version = "0.11.26", features = ["blocking"] }
zip = "2.2.0"
once_cell = { version = "1.20.2" }
tar = "0.4"
flate2 = "1.0"

[features]
built-in-tools = []
15 changes: 15 additions & 0 deletions libs/shinkai-tools-runner/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use std::env;
use std::path::PathBuf;

#[path = "src/copy_assets.rs"]
mod copy_assets;

fn main() {
println!("cargo:rerun-if-changed=copy_assets.rs");
// Get profile (debug/release) from cargo
let profile = env::var("PROFILE").unwrap();
copy_assets::copy_assets(
Some(PathBuf::from(".")),
Some(PathBuf::from("../../target").join(&profile)),
);
}
1 change: 0 additions & 1 deletion libs/shinkai-tools-runner/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"cwd": "libs/shinkai-tools-runner",
"commands": [
"npx copyfiles --up 4 --verbose ./../../dist/apps/shinkai-tool-*/definition.json ./tools/",
"deno task copy-deno ./libs/shinkai-tools-runner/shinkai-tools-runner-resources/",
"cargo build"
],
"parallel": false
Expand Down
Loading

0 comments on commit f64d36b

Please sign in to comment.