Skip to content

Build lind-boot in debug mode by default #2486

Build lind-boot in debug mode by default

Build lind-boot in debug mode by default #2486

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
lint:
# If the workflow was triggered by anything other than a pull_request event
# (e.g., push, workflow_dispatch, schedule, pull_request_target),
# github.event_name != 'pull_request' is true.
# github.event.pull_request is only populated on pull_request events.
# It is true when the PR is not a draft (i.e., “Ready for review”).
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Format
run: |
cargo fmt --check --all --manifest-path src/wasmtime/Cargo.toml
cargo fmt --check --all --manifest-path src/lind-boot/Cargo.toml
# Using rust nightly, invalidates cache every day
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- name: Switch to Rust nightly
run: |
# Pin to last working nightly version (see #242)
rustup default nightly-2025-06-08
rustup component add clippy
- name: Clippy
run: |
# Run clippy over lind-boot and its dependencies.
# Note: --all-features can't be used because it would enable every
# fdtables-* impl simultaneously, tripping the fdtables impl-mutex
# compile_error guard. Enumerate the non-fdtables features explicitly
# and pin to the default fdtables impl.
# See `cargo clippy` and `cargo check` for available options
cargo clippy \
--manifest-path src/lind-boot/Cargo.toml \
--features "disable_signals secure lind_debug debug-dylink debug-grate-calls fdtables-dashmaparray" \
--keep-going \
-- \
-A warnings \
-A clippy::not_unsafe_ptr_arg_deref \
-A clippy::absurd_extreme_comparisons
# - name: Install Zizmor via Cargo
# run: cargo install zizmor --version 1.15.2
# - name: Run Zizmor
# env:
# GH_TOKEN: ${{ github.token }}
# run: zizmor -v .github/workflows #Running with -v to show all passes, will halt if any fail