2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-01 10:09:57 +00:00
pict-rs/.forgejo/workflows/check.yaml

61 lines
1.5 KiB
YAML
Raw Normal View History

2024-02-07 02:20:35 +00:00
on:
push:
pull_request:
branches:
- main
jobs:
2024-02-07 21:12:49 +00:00
clippy:
2024-02-07 19:52:21 +00:00
runs-on: docker
container:
2024-02-08 20:50:27 +00:00
image: docker.io/asonix/actions-base-image:0.1
2024-02-07 19:52:21 +00:00
steps:
2024-02-07 20:57:27 +00:00
-
name: Checkout pict-rs
uses: https://github.com/actions/checkout@v4
-
name: Cargo Cache
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
2024-02-07 20:57:27 +00:00
-
2024-02-07 21:12:49 +00:00
name: Clippy
2024-02-07 20:57:27 +00:00
run: |
2024-02-07 02:49:39 +00:00
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:
2024-02-08 20:50:27 +00:00
image: docker.io/asonix/actions-base-image:0.1
2024-02-07 02:20:35 +00:00
steps:
2024-02-07 21:12:49 +00:00
-
name: Checkout pict-rs
uses: https://github.com/actions/checkout@v4
-
name: Cargo Cache
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
2024-02-07 21:12:49 +00:00
-
name: Test
run: cargo test
2024-02-07 04:02:57 +00:00
2024-02-07 04:15:15 +00:00
check:
strategy:
2024-02-08 20:50:27 +00:00
fail-fast: false
2024-02-07 04:15:15 +00:00
matrix:
2024-02-07 21:12:49 +00:00
target:
- x86_64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- aarch64-unknown-linux-musl
2024-02-07 04:02:57 +00:00
runs-on: docker
container:
2024-02-08 20:50:27 +00:00
image: docker.io/asonix/actions-base-image:0.1
2024-02-07 04:02:57 +00:00
steps:
2024-02-07 21:12:49 +00:00
-
name: Checkout pict-rs
uses: https://github.com/actions/checkout@v4
-
name: Cargo Cache
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
2024-02-07 21:12:49 +00:00
-
2024-02-07 21:22:17 +00:00
name: Debug builds
2024-02-07 21:27:57 +00:00
run: cargo zigbuild --target ${{ matrix.target }}