Skip to content

Add logic for parsing all rustc directives and converting to dejagnu directive with relative line numbers #13

Add logic for parsing all rustc directives and converting to dejagnu directive with relative line numbers

Add logic for parsing all rustc directives and converting to dejagnu directive with relative line numbers #13

Workflow file for this run

name: Rust Test to DejaGnu -- Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Cargo Build, Test, Clippy, Fmt
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Cargo Build
run: cargo build --verbose
- name: Cargo Test
run: cargo test --verbose
- name: Add rustup components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Cargo fmt
run: cargo fmt --all --check
- name: Clippy check
run: cargo clippy --all-targets --all-features