2024-02-07 02:20:35 +00:00
|
|
|
on:
|
|
|
|
push:
|
2024-02-12 19:47:51 +00:00
|
|
|
branches:
|
|
|
|
- '*'
|
2024-02-07 02:20:35 +00:00
|
|
|
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-06-21 19:27:11 +00:00
|
|
|
image: docker.io/asonix/actions-base-image:0.1.21
|
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
|
2024-02-08 21:32:55 +00:00
|
|
|
-
|
|
|
|
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
|
|
|
|
2024-06-21 19:27:11 +00:00
|
|
|
deny:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: docker.io/asonix/actions-base-image:0.1.21
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
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-06-21 19:29:49 +00:00
|
|
|
name: Cargo Deny
|
2024-06-21 19:27:11 +00:00
|
|
|
run: |
|
|
|
|
cargo deny check
|
|
|
|
|
2024-02-07 02:20:35 +00:00
|
|
|
tests:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-06-21 19:27:11 +00:00
|
|
|
image: docker.io/asonix/actions-base-image:0.1.21
|
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
|
2024-02-08 21:32:55 +00:00
|
|
|
-
|
|
|
|
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-06-21 19:27:11 +00:00
|
|
|
image: docker.io/asonix/actions-base-image:0.1.21
|
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
|
2024-02-08 21:32:55 +00:00
|
|
|
-
|
|
|
|
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 }}
|