-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.13 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Check code styles
run: cargo fmt --check
- name: Lint dumper
run: cargo +nightly clippy --package dumper --target x86_64-unknown-none -- -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