yotei/.forgejo/workflows/uwu.yaml
xqtc 4f4886ac98
Some checks failed
/ build (push) Failing after 10s
/ clippy (push) Failing after 9s
add actions/ to protoc action
2024-09-05 22:22:47 +02:00

49 lines
1.3 KiB
YAML

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
- name: Install Protoc
uses: actions/arduino/setup-protoc@v3
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --bins
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --lib
# - uses: https://github.com/actions-rs/cargo@v1
# with:
# command: test
# args: --lib
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
- name: Install Protoc
uses: actions/arduino/setup-protoc@v3
- uses: https://github.com/actions-rs/cargo@v1
with:
command: clippy
args: --fix --lib --bins
- id: commit
name: commit
uses: https://github.com/EndBug/add-and-commit@v9
with:
author_name: "[Clippy]"