Skip to content

Move sanitize_filename to codegen/mod.rs #423

Move sanitize_filename to codegen/mod.rs

Move sanitize_filename to codegen/mod.rs #423

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.88
override: true
components: rustfmt, clippy
- name: Build
run: cargo build --verbose --all-features
- name: Run tests
run: cargo test --verbose --all-features
- name: Run regression test
run: ./target/debug/sus_compiler test.sus --ci --nocolor -o test.sus_codegen_ci.sv 1> test.sus_output_ci.txt 2> test.sus_errors_ci.txt || true && diff test.sus_output_ci.txt /dev/null && diff test.sus_errors_ci.txt test.sus_errors.txt && diff test.sus_codegen_ci.sv test.sus_codegen.sv
lint:
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.88
override: true
components: rustfmt, clippy
- name: format
run: cargo fmt --check
- name: clippy
run: RUSTFLAGS="-A unused" cargo clippy -- -Dwarnings