Skip to content

Commit 7431e30

Browse files
authored
add openssl to remove runtime dependency (#8)
* add openssl to remove runtime dependency * ci: add checks * fix clippy * ci * add badge [no ci]
1 parent f30f76b commit 7431e30

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

.github/workflows/checks.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Install Rust toolchain
19+
uses: dtolnay/rust-toolchain@stable
20+
21+
- name: Install libudev
22+
run: |
23+
sudo apt update
24+
sudo apt install -y libudev-dev
25+
26+
- name: Build
27+
run: cargo build --verbose
28+
29+
clippy:
30+
name: Clippy
31+
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
34+
security-events: write
35+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
40+
- name: Install Rust toolchain
41+
uses: dtolnay/rust-toolchain@stable
42+
43+
- name: Install required cargo
44+
run: cargo install clippy-sarif sarif-fmt
45+
46+
- name: Install libudev
47+
run: |
48+
sudo apt update
49+
sudo apt install -y libudev-dev
50+
51+
- name: Run rust-clippy
52+
run: cargo clippy
53+
--all-features
54+
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
55+
continue-on-error: true
56+
57+
- name: Upload analysis results to GitHub
58+
uses: github/codeql-action/upload-sarif@v3
59+
with:
60+
sarif_file: rust-clippy-results.sarif
61+
wait-for-processing: true

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rust-s3 = {version = "0.35", default-features = false, features = ["sync", "sync
1717
serde = { version = "1.0.210", features = ["derive"] }
1818
serde_json = "1.0.128"
1919
toml = "0.8.19"
20+
openssl = { version = "0.10", features = ["vendored"] }
2021

2122
# The profile that 'cargo dist' will build with
2223
[profile.dist]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# quick-flash
22

3+
[![Continuous Deployment](https://github.com/manakjiri/quick-flash/actions/workflows/release-plz.yml/badge.svg)](https://github.com/manakjiri/quick-flash/actions/workflows/release-plz.yml)
4+
35
A simple and portable program which pulls built firmware binaries from an [S3-compatible object storage API](https://github.com/durch/rust-s3) and downloads them onto the target using a [probe-rs](https://github.com/probe-rs/probe-rs) compatible debug probe.
46

57
The idea is to solve the problem of distributing up-to-date binaries within a hardware dev-team, which should aid testing and debugging efforts.

0 commit comments

Comments
 (0)