Skip to content

build all examples#70

Merged
ruslanti merged 3 commits intomainfrom
ref/build_all_examples
May 7, 2026
Merged

build all examples#70
ruslanti merged 3 commits intomainfrom
ref/build_all_examples

Conversation

@ruslanti
Copy link
Copy Markdown
Collaborator

@ruslanti ruslanti commented May 6, 2026

No description provided.

ruslanti added 2 commits May 6, 2026 12:21
…examples

- Simplified HTTP response body setting logic in `cdn/key_value` example.
- Added `build-examples.sh` for building and cleaning FastEdge SDK examples.
Introduces a new workflow to automatically build CDN and HTTP examples targeting `wasm32-wasip1` and `wasm32-wasip2` platforms.
@ruslanti ruslanti requested review from Copilot, godronus and qrdl May 6, 2026 09:34
@ruslanti ruslanti self-assigned this May 6, 2026
@ruslanti ruslanti added the enhancement New feature or request label May 6, 2026
Comment thread .github/workflows/build-examples.yaml Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds automation to ensure all FastEdge SDK example crates can be built, and aligns a couple of examples with the current dependency/API state so they compile cleanly.

Changes:

  • Add a build-examples.sh helper script to build (or clean) all example crates with the appropriate WASI targets.
  • Add a GitHub Actions workflow to build all examples on CI.
  • Update example code/dependencies to support building all examples (incl. updating examples/cdn/api_key lockfile and simplifying set_http_response_body usage in key_value).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
examples/cdn/key_value/src/lib.rs Simplifies response body setting to match current usage patterns.
examples/cdn/api_key/Cargo.lock Updates resolved dependencies (notably fastedge to 0.3.5) for reproducible builds.
build-examples.sh Adds a repo-level script to build/clean all standalone example crates with correct targets.
.github/workflows/build-examples.yaml Adds CI workflow steps to build all example groups/targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build-examples.yaml
Comment thread .github/workflows/build-examples.yaml
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ruslanti ruslanti merged commit 57eb684 into main May 7, 2026
7 checks passed
@ruslanti ruslanti deleted the ref/build_all_examples branch May 7, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants