Add license header check for rust files

Added binary that can check for and add Apache 2.0 licenses.
Run this binary during the build-rust workflow.
This commit is contained in:
Gabriel White-Vega
2023-09-08 16:53:36 -04:00
parent 01603ca9e4
commit 6ec6f1efe5
8 changed files with 293 additions and 3 deletions

View File

@@ -64,6 +64,8 @@ jobs:
with:
components: clippy,rustfmt
toolchain: ${{ matrix.rust-version }}
- name: Check License Headers
run: cd rust && cargo run --features dev-tools --bin file-header check-all
- name: Rust Build
run: cd rust && cargo build --all-targets && cargo build --all-features --all-targets
# Lints after build so what clippy needs is already built