-
Notifications
You must be signed in to change notification settings - Fork 0
Add embers backend #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,13 +24,22 @@ jobs: | |
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| toolchain: 1.90 | ||
| toolchain: 1.95.0 | ||
| components: clippy, rustfmt | ||
|
|
||
| - name: Install tmux | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update && sudo apt-get install -y tmux | ||
| sudo apt-get update && sudo apt-get install -y tmux unzip | ||
| tmux new-session -d | ||
| # The flatbuffers-generated code only compiles against a matching | ||
| # flatc; the apt package is too old. Install the flatc release that | ||
| # matches the `flatbuffers` crate version pinned in Cargo.lock. | ||
| flatc_version="$(sed -nE '/name = "flatbuffers"/{n;s/^version = "(.*)"$/\1/p;}' crates/wisp-embers/Cargo.lock)" | ||
| [ -n "$flatc_version" ] || { echo "could not determine flatbuffers version from Cargo.lock" >&2; exit 1; } | ||
| curl -fsSL -o /tmp/flatc.zip \ | ||
| "https://github.com/google/flatbuffers/releases/download/v${flatc_version}/Linux.flatc.binary.g++-13.zip" | ||
| sudo unzip -o /tmp/flatc.zip -d /usr/local/bin | ||
| flatc --version | ||
|
|
||
| - name: Cache cargo artifacts | ||
| uses: swatinem/rust-cache@v2 | ||
|
|
@@ -46,3 +55,48 @@ jobs: | |
|
|
||
| - name: Run tests | ||
| run: cargo test --workspace --all-targets | ||
|
|
||
| embers: | ||
| name: Embers Backend | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
Comment on lines
+64
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify unpinned action refs and checkout credential persistence in workflows.
rg -n 'uses:\s*[^@]+@(?:v[0-9]+|stable|main|master)$' .github/workflows
rg -n -A4 -B2 'uses:\s*actions/checkout@' .github/workflowsRepository: Pajn/wisp Length of output: 3576 🏁 Script executed: cat -n .github/workflows/ci.yml | sed -n '50,95p'Repository: Pajn/wisp Length of output: 2214 Pin third-party actions to commit SHAs and disable checkout credential persistence in the embers job. Lines 64, 67, and 86 use mutable tags ( Example fix- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1482605baf5caebd8b2feb1143f460cce50e0a94 # stable🧰 Tools🪛 zizmor (1.25.2)[warning] 63-64: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 64-64: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [error] 67-67: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [info] 67-67: action functionality is already included by the runner (superfluous-actions): use (superfluous-actions) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
| with: | ||
| toolchain: 1.95.0 | ||
| components: clippy | ||
|
|
||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update && sudo apt-get install -y tmux unzip | ||
| tmux new-session -d | ||
| # The flatbuffers-generated code only compiles against a matching | ||
| # flatc; the apt package is too old. Install the flatc release that | ||
| # matches the `flatbuffers` crate version pinned in Cargo.lock. | ||
| flatc_version="$(sed -nE '/name = "flatbuffers"/{n;s/^version = "(.*)"$/\1/p;}' crates/wisp-embers/Cargo.lock)" | ||
| [ -n "$flatc_version" ] || { echo "could not determine flatbuffers version from Cargo.lock" >&2; exit 1; } | ||
| curl -fsSL -o /tmp/flatc.zip \ | ||
| "https://github.com/google/flatbuffers/releases/download/v${flatc_version}/Linux.flatc.binary.g++-13.zip" | ||
| sudo unzip -o /tmp/flatc.zip -d /usr/local/bin | ||
| flatc --version | ||
|
|
||
| - name: Cache cargo artifacts | ||
| uses: swatinem/rust-cache@v2 | ||
|
|
||
| # The wisp-embers crate is excluded from the workspace (it needs flatc and | ||
| # is gated behind the optional `embers` feature), so the `rust` job's | ||
| # `--workspace` commands skip it. Build, lint, and run its tests here. | ||
| - name: Run clippy (wisp-embers) | ||
| run: cargo clippy --manifest-path crates/wisp-embers/Cargo.toml --all-targets -- -D warnings | ||
|
|
||
| - name: Run tests (wisp-embers) | ||
| run: cargo test --manifest-path crates/wisp-embers/Cargo.toml --all-targets | ||
|
|
||
| # Exercise the embers-gated integration code in the binary and app crates, | ||
| # which the default-feature `rust` job never compiles or runs. | ||
| - name: Run tests (embers feature) | ||
| run: cargo test -p wisp -p wisp-app --features embers --all-targets | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /target | ||
| /.DS_Store | ||
|
|
||
| /crates/wisp-embers/target |
Uh oh!
There was an error while loading. Please reload this page.