Skip to content

168 add derive proc macro for arguments parsing (#172) #154

168 add derive proc macro for arguments parsing (#172)

168 add derive proc macro for arguments parsing (#172) #154

Workflow file for this run

name: Check
description: Run Rust checks including formatting, linting, documentation, examples build, and tests
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
rust-checks:
name: Rust checks
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout repository
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Setup | Install cargo-taplo
run: |
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz \
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
- name: Check | Formatting (TOML)
run: cargo make format-toml --check
- name: Check | Formatting (Rust)
run: cargo make format-rust -- --check
- name: Check | Formatting (JSON)
run: npx prettier --check "**/*.json"
- name: Check | Clippy (Host)
run: cargo make clippy-host
- name: Check | Clippy (Guest)
run: cargo make clippy-guest
- name: Check | Documentation (Host)
run: RUSTDOCFLAGS="--deny warnings" cargo make doc-host
- name: Check | Documentation (Guest)
run: RUSTDOCFLAGS="--deny warnings" cargo make doc-guest
- name: Build | Example (Native)
run: cargo make build -p native_example && cargo clean -p native_example
- name: Build | Example (WASM)
working-directory: ./examples/wasm
run: trunk build && cargo clean --target wasm32-unknown-unknown
- name: Run | Test
run: cargo make coverage --lcov --output-path lcov.info
- name: Upload | Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # required for private repos or protected branches
slug: Xila-Project/Core
files: lcov.info
fail_ci_if_error: true