Add forgejo actions
All checks were successful
/ check (aarch64-unknown-linux-musl) (push) Successful in 34s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 32s
/ check (x86_64-unknown-linux-musl) (push) Successful in 25s
/ clippy (push) Successful in 29s
/ tests (push) Successful in 36s
/ build (aarch64-unknown-linux-musl) (push) Successful in 37s
/ build (armv7-unknown-linux-musleabihf) (push) Successful in 37s
/ build (x86_64-unknown-linux-musl) (push) Successful in 24s
/ publish-forgejo (push) Successful in 8s
/ publish-crate (push) Successful in 27s
All checks were successful
/ check (aarch64-unknown-linux-musl) (push) Successful in 34s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 32s
/ check (x86_64-unknown-linux-musl) (push) Successful in 25s
/ clippy (push) Successful in 29s
/ tests (push) Successful in 36s
/ build (aarch64-unknown-linux-musl) (push) Successful in 37s
/ build (armv7-unknown-linux-musleabihf) (push) Successful in 37s
/ build (x86_64-unknown-linux-musl) (push) Successful in 24s
/ publish-forgejo (push) Successful in 8s
/ publish-crate (push) Successful in 27s
This commit is contained in:
parent
298843c31c
commit
9ab99f162a
2 changed files with 133 additions and 0 deletions
55
.forgejo/workflows/check.yaml
Normal file
55
.forgejo/workflows/check.yaml
Normal file
|
@ -0,0 +1,55 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
clippy:
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Clippy
|
||||
run: |
|
||||
cargo clippy --no-default-features -- -D warnings
|
||||
|
||||
tests:
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Test
|
||||
run: cargo test
|
||||
|
||||
check:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target:
|
||||
- x86_64-unknown-linux-musl
|
||||
- armv7-unknown-linux-musleabihf
|
||||
- aarch64-unknown-linux-musl
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Debug builds
|
||||
run: cargo zigbuild --target ${{ matrix.target }}
|
78
.forgejo/workflows/publish.yaml
Normal file
78
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,78 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
clippy:
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Clippy
|
||||
run: |
|
||||
cargo clippy --no-default-features -- -D warnings
|
||||
|
||||
tests:
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Test
|
||||
run: cargo test
|
||||
|
||||
build:
|
||||
needs:
|
||||
- clippy
|
||||
- tests
|
||||
runs-on: base-image
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target:
|
||||
- x86_64-unknown-linux-musl
|
||||
- armv7-unknown-linux-musleabihf
|
||||
- aarch64-unknown-linux-musl
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Compile actix-form-data
|
||||
run: cargo zigbuild --target ${{ matrix.target }}
|
||||
|
||||
publish-forgejo:
|
||||
needs: [build]
|
||||
runs-on: base-image
|
||||
steps:
|
||||
- uses: actions/forgejo-release@v1
|
||||
with:
|
||||
direction: upload
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish-crate:
|
||||
needs: [build]
|
||||
runs-on: base-image
|
||||
steps:
|
||||
-
|
||||
name: Checkout actix-form-data
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
-
|
||||
name: Cargo Cache
|
||||
uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main
|
||||
-
|
||||
name: Publish Crate
|
||||
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
Loading…
Add table
Reference in a new issue