2024-09-03 22:08:44 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- id: checkout
|
|
|
|
name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: https://github.com/actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2024-09-05 22:22:47 +02:00
|
|
|
- name: Install Protoc
|
2024-09-05 22:25:06 +02:00
|
|
|
uses: https://github.com/arduino/setup-protoc@v3
|
2024-09-03 22:08:44 +02:00
|
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2024-09-05 22:39:13 +02:00
|
|
|
args: --bins
|
2024-09-03 22:08:44 +02:00
|
|
|
# - uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
# with:
|
2024-09-05 22:39:13 +02:00
|
|
|
# command: build
|
|
|
|
# args: --lib
|
2024-09-03 22:08:44 +02:00
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- id: checkout
|
|
|
|
name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: https://github.com/actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
2024-09-05 22:18:05 +02:00
|
|
|
- name: Install Protoc
|
2024-09-05 22:25:06 +02:00
|
|
|
uses: https://github.com/arduino/setup-protoc@v3
|
2024-09-03 22:08:44 +02:00
|
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
2024-09-05 22:39:13 +02:00
|
|
|
args: --fix --bins
|
2024-09-03 22:08:44 +02:00
|
|
|
- id: commit
|
|
|
|
name: commit
|
|
|
|
uses: https://github.com/EndBug/add-and-commit@v9
|
|
|
|
with:
|
|
|
|
author_name: "[Clippy]"
|
2024-09-10 17:02:08 +02:00
|
|
|
committer_name: "[Clippy]"
|
2024-09-03 22:08:44 +02:00
|
|
|
|