yotei/.forgejo/workflows/uwu.yaml
xqtc b14e2c77f7
Some checks failed
/ build (push) Failing after 1m32s
/ clippy (push) Has been cancelled
Add workflows
2024-09-03 22:08:44 +02:00

45 lines
1.1 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
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --bin uwusched
- uses: https://github.com/actions-rs/cargo@v1
with:
command: build
args: --release --lib lib-uwusched
# - 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
- uses: https://github.com/actions-rs/cargo@v1
with:
command: clippy
args: --fix --lib --bin
- id: commit
name: commit
uses: https://github.com/EndBug/add-and-commit@v9
with:
author_name: "[Clippy]"