Adds warnings #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Install Rust nightly | |
run: rustup toolchain install nightly | |
- name: Install required Rust components | |
run: rustup component add --toolchain nightly clippy llvm-tools rust-src | |
- name: Install required Rust targets | |
run: rustup target add --toolchain nightly x86_64-unknown-none | |
- name: Check code styles | |
run: cargo fmt --check | |
- name: Lint dumper | |
run: cargo +nightly clippy --package dumper --target x86_64-unknown-none --no-deps -- -D warnings | |
env: | |
RUSTFLAGS: --cfg fw="1100" | |
- name: Lint obfw | |
run: cargo clippy --package obfw --all-features -- -D warnings | |
- name: Build Payload | |
run: ./build.py | |
- name: Upload Payload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware-dumper | |
path: firmware-dumper.bin |