mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
runner changes
This commit is contained in:
parent
88d847a12e
commit
5d9fe051b5
2 changed files with 40 additions and 59 deletions
|
@ -11,6 +11,8 @@ jobs:
|
||||||
image: docker.io/node:20-alpine3.19
|
image: docker.io/node:20-alpine3.19
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
url: https://git.asonix.dog
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
needs: [checkout]
|
needs: [checkout]
|
||||||
|
@ -18,9 +20,11 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: docker.io/asonix/rust-builder:latest-linux-amd64
|
image: docker.io/asonix/rust-builder:latest-linux-amd64
|
||||||
steps:
|
steps:
|
||||||
- run: rustup component add clippy
|
- run: |
|
||||||
- run: cargo clippy --no-default-features -- -D warnings
|
env
|
||||||
- run: cargo clippy --no-default-features --features io-uring -- -D warnings
|
rustup component add clippy
|
||||||
|
cargo clippy --no-default-features -- -D warnings
|
||||||
|
cargo clippy --no-default-features --features io-uring -- -D warnings
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
needs: [checkout]
|
needs: [checkout]
|
||||||
|
|
|
@ -10,9 +10,10 @@ jobs:
|
||||||
image: docker.io/asonix/rust-builder:latest-linux-amd64
|
image: docker.io/asonix/rust-builder:latest-linux-amd64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: rustup component add clippy
|
- run: |
|
||||||
- run: cargo clippy --no-default-features -- -D warnings
|
rustup component add clippy
|
||||||
- run: cargo clippy --no-default-features --features io-uring -- -D warnings
|
cargo clippy --no-default-features -- -D warnings
|
||||||
|
cargo clippy --no-default-features --features io-uring -- -D warnings
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -22,65 +23,38 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: cargo test
|
- run: cargo test
|
||||||
|
|
||||||
build-amd64:
|
build:
|
||||||
needs:
|
needs:
|
||||||
- clippy
|
- clippy
|
||||||
- tests
|
- tests
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
- tag: latest-linux-amd64
|
||||||
|
artifact: linux-amd64
|
||||||
|
target: x86_64-unknown-linux-musl
|
||||||
|
- tag: latest-linux-arm32v7
|
||||||
|
target: armv7-unknown-linux-musleabihf
|
||||||
|
artifact: linux-arm32v7
|
||||||
|
- tag: latest-linux-arm64v8
|
||||||
|
artifact: linux-arm64v8
|
||||||
|
target: aarch64-unknown-linux-musl
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: docker.io/asonix/rust-builder:latest-linux-amd64
|
image: docker.io/asonix/rust-builder:${{ matrix.tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: cargo build --target=$TARGET --release
|
- run: |
|
||||||
- run: mkdir artifacts
|
cargo build --target=${{ matrix.target }} --release
|
||||||
- run: cp target/$TARGET/release/pict-rs artifacts/pict-rs
|
mkdir artifacts
|
||||||
|
cp target/${{ matrix.target }}/release/pict-rs artifacts/pict-rs
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-amd64
|
name: ${{ matrix.artifact }}
|
||||||
path: artifacts/
|
|
||||||
|
|
||||||
build-arm32v7:
|
|
||||||
needs:
|
|
||||||
- clippy
|
|
||||||
- tests
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: docker.io/asonix/rust-builder:latest-linux-arm32v7
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: cargo build --target=$TARGET --release
|
|
||||||
- run: mkdir artifacts
|
|
||||||
- run: cp target/$TARGET/release/pict-rs artifacts/pict-rs
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-arm32v7
|
|
||||||
path: artifacts/
|
|
||||||
|
|
||||||
build-arm64v8:
|
|
||||||
needs:
|
|
||||||
- clippy
|
|
||||||
- tests
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: docker.io/asonix/rust-builder:latest-linux-arm64v8
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: cargo build --target=$TARGET --release
|
|
||||||
- run: mkdir artifacts
|
|
||||||
- run: cp target/$TARGET/release/pict-rs artifacts/pict-rs
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: linux-arm64v8
|
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
|
|
||||||
prepare-docker:
|
prepare-docker:
|
||||||
needs:
|
needs:
|
||||||
- build-amd64
|
- build
|
||||||
- build-arm32v7
|
|
||||||
- build-arm64v8
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: docker.io/ubuntu:latest
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -91,6 +65,9 @@ jobs:
|
||||||
artifact: linux-arm32v7
|
artifact: linux-arm32v7
|
||||||
- docker: linux/arm64
|
- docker: linux/arm64
|
||||||
artifact: linux-arm64v8
|
artifact: linux-arm64v8
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/ubuntu:latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Prepare
|
name: Prepare
|
||||||
|
|
Loading…
Reference in a new issue