Skip to content

Commit 21a21e4

Browse files
committed
Add GitHub Actions config
For checking the code still builds when a PR is proposed
1 parent 8dc1c14 commit 21a21e4

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/rust.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install protobuf-compiler
21+
cargo install wasm-pack
22+
- name: Build
23+
run: cargo build
24+
- name: Build WASM
25+
run: wasm-pack build --target web ./pack-wasm
26+
- name: Run clippy
27+
run: cargo clippy -- --deny warnings
28+
29+
format:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Install Nightly Rust
34+
run: |
35+
rustup install --no-self-update nightly
36+
rustup component add --toolchain nightly rustfmt
37+
- name: Format Rust code
38+
run: cargo +nightly fmt --all -- --check

pack-aab/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
// The use of the proto! macro causes some extraneous Default::default() calls,
1616
// but they are harmless and unavoidable with the current design of the macro.
17-
#![allow(clippy::needless_update)]
1817

1918
pub mod android {
2019
// Generated code from Protobufs does not follow Clippy documentation convention

0 commit comments

Comments
 (0)