Skip to content
Draft
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
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
Expand All @@ -15,29 +18,29 @@ jobs:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Install Rust toolchain (from rust-toolchain.toml)
run: rustup show
- name: Cache cargo registry + target
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@2201cc584a476d1b508be977bbe4b7d1c7a52e9c # v2.9.3
- name: cargo test --workspace
run: cargo test --workspace --all-targets

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@2201cc584a476d1b508be977bbe4b7d1c7a52e9c # v2.9.3
- name: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- run: rustup show
- name: cargo fmt --all -- --check
run: cargo fmt --all -- --check
Expand All @@ -46,9 +49,9 @@ jobs:
name: cargo publish --dry-run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- run: rustup show
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@2201cc584a476d1b508be977bbe4b7d1c7a52e9c # v2.9.3
- name: Verify each crate publishes cleanly (dry-run)
run: |
for crate in magna-types magna-core magna-sql magna-introspect magna-dataplan magna-config magna-build magna-serv magna-subscriptions magna-remote magna; do
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/gqlmin-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,23 @@ on:
- "Cargo.lock"
- ".github/workflows/gqlmin-size.yml"

permissions:
contents: read

jobs:
gqlmin-size:
name: wasm size gate (≤ 6500 bytes gz)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0

# The wasm size-gate path uses a NIGHTLY toolchain with -Z build-std
# to dead-strip panic strings, Unicode tables, and format machinery
# from core/alloc. The workspace `rust-toolchain.toml` stays stable;
# nightly is invoked only here for the size-gate target.
# See crates/magna-gqlmin/SIZE.md "R7 (Path β ...)" for rationale.
- name: Install nightly toolchain (for build-std)
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@2c76c034f9e32a5d6e2c104dc4df23a22476db04 # nightly HEAD as of 2026-W46 sweep; this action uses branch refs as channel selectors, re-verify periodically
with:
targets: wasm32-unknown-unknown
components: rust-src
Expand Down
Loading