Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-wasip1
- run: pnpm install --frozen-lockfile --filter '@rivet-dev/agentos-runtime-benchmarks...'
- run: pnpm install --frozen-lockfile --filter '@rivet-dev/agentos-runtime-benchmarks...' --filter '@rivet-dev/agentos-runtime-core...' --filter '@rivet-dev/agentos-build-tools'
- run: cargo build --release -p agentos-native-sidecar
- run: cargo build --release -p agentos-native-baseline
- run: cargo build --release --target wasm32-wasip1 -p agentos-native-baseline
- run: make -C registry/native commands
- run: node packages/runtime-core/scripts/copy-wasm-commands.mjs --require
- run: pnpm --dir packages/runtime-core build
- run: pnpm --dir packages/runtime-benchmarks bench:check
- run: pnpm --dir packages/runtime-benchmarks bench:gate
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,19 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install wasm-pack
run: |
rustup target add wasm32-unknown-unknown
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: |
rm -rf /tmp/docs-theme
git clone https://github.com/rivet-dev/docs-theme.git /tmp/docs-theme
git -C /tmp/docs-theme checkout 450c498555135098c6a927adfdf13458be9be22a
rm -rf website/vendor/theme && mkdir -p website/vendor
cp -r /tmp/docs-theme/packages/theme website/vendor/theme
- run: pnpm install --frozen-lockfile
- name: Install Playwright Chromium
run: pnpm --dir packages/browser exec playwright install --with-deps chromium
- uses: actions/download-artifact@v4
with:
name: wasm-commands
Expand All @@ -111,6 +117,11 @@ jobs:
- run: cargo test -p agentos-client -- --test-threads=1
env:
AGENT_OS_CLIENT_ALLOW_E2E_SKIPS: '1'
- name: Reclaim Cargo target space before package tests
run: |
df -h .
cargo clean
df -h .
- if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: pnpm test
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target/
# TypeScript
*.tsbuildinfo
dist/
packages/agentos/src/generated/

# IDE
.vscode/
Expand Down
21 changes: 21 additions & 0 deletions crates/agentos-actor-plugin/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
use std::path::PathBuf;

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

fn main() {
println!("cargo:rerun-if-changed=src/actions/contract_surface.rs");

let manifest_dir = PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
let generated_path = manifest_dir
.join("../..")
.join(contract_surface::GENERATED_ACTOR_ACTIONS_PATH);
let parent = generated_path
.parent()
.expect("generated actor actions path must have a parent");

std::fs::create_dir_all(parent)
.unwrap_or_else(|error| panic!("create {}: {error}", parent.display()));
std::fs::write(&generated_path, contract_surface::render_actor_actions_ts())
.unwrap_or_else(|error| panic!("write {}: {error}", generated_path.display()));
}
Loading
Loading