pict-rs/.forgejo/workflows/check.yaml

41 lines
1 KiB
YAML
Raw Normal View History

2024-02-07 02:20:35 +00:00
on:
push:
pull_request:
branches:
- main
jobs:
clippy:
runs-on: docker
container:
image: docker.io/asonix/rust-builder:latest-linux-amd64
steps:
2024-02-07 02:49:39 +00:00
- run: |
2024-02-07 03:58:49 +00:00
git clone ${{ env.github_server_url }}/${{ env.github_repository }} .
2024-02-07 02:49:39 +00:00
rustup component add clippy
cargo clippy --no-default-features -- -D warnings
cargo clippy --no-default-features --features io-uring -- -D warnings
2024-02-07 02:20:35 +00:00
tests:
runs-on: docker
container:
image: docker.io/asonix/rust-builder:latest-linux-amd64
steps:
2024-02-07 03:57:43 +00:00
- run: |
2024-02-07 03:58:49 +00:00
git clone ${{ env.github_server_url }}/${{ env.github_repository }} .
2024-02-07 03:57:43 +00:00
cargo test
2024-02-07 04:02:57 +00:00
checks:
runs-on: docker
strategy:
matrix:
- tag: latest-linux-amd64
- tag: latest-linux-arm32v7
- tag: latest-linux-arm64v8
container:
image: docker.io/asonix/rust-builder:${{ matrix.tag }}
steps:
- run: |
git clone ${{ env.github_server_url }}/${{ env.github_repository }} .
cargo check