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:
|
|
|
|
image: docker.io/node:20-bookworm
|
|
|
|
steps:
|
2024-02-07 20:57:27 +00:00
|
|
|
-
|
|
|
|
name: Checkout pict-rs
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
-
|
2024-02-07 22:27:23 +00:00
|
|
|
name: Setup Rust
|
2024-02-07 22:29:11 +00:00
|
|
|
uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@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-07 21:12:49 +00:00
|
|
|
image: docker.io/node:20-bookworm
|
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-07 22:27:23 +00:00
|
|
|
name: Setup Rust
|
2024-02-07 22:29:11 +00:00
|
|
|
uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@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:
|
|
|
|
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-07 21:12:49 +00:00
|
|
|
image: docker.io/node:20-bookworm
|
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-07 22:27:23 +00:00
|
|
|
name: Setup Rust
|
2024-02-07 22:29:11 +00:00
|
|
|
uses: https://git.asonix.dog/asonix/pict-rs/.forgejo/actions/prepare-rust@main
|
2024-02-07 21:12:49 +00:00
|
|
|
with:
|
2024-02-07 22:27:23 +00:00
|
|
|
targets: x86_64-unknown-linux-musl,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl
|
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 }}
|