chore(ci): modernize config
parent
3b2d6dec87
commit
fcb3a18416
|
@ -1,13 +1,14 @@
|
||||||
platform: 'linux/amd64'
|
platform: 'linux/amd64'
|
||||||
branches:
|
|
||||||
exclude: [main]
|
|
||||||
|
|
||||||
pipeline:
|
when:
|
||||||
|
branch:
|
||||||
|
exclude: [main]
|
||||||
|
event: push
|
||||||
|
|
||||||
|
steps:
|
||||||
build:
|
build:
|
||||||
image: 'rust:1.70-alpine3.18'
|
image: 'rust:1.70-alpine3.18'
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache build-base libarchive libarchive-dev
|
- apk add --no-cache build-base libarchive libarchive-dev
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
when:
|
|
||||||
event: [push]
|
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
platform: 'linux/amd64'
|
platform: 'linux/amd64'
|
||||||
|
|
||||||
branches:
|
when:
|
||||||
exclude: [main]
|
branch:
|
||||||
|
exclude: [main]
|
||||||
|
event: push
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
clippy:
|
clippy:
|
||||||
image: 'rust:1.70-alpine3.18'
|
image: 'rust:1.70-alpine3.18'
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy -- --no-deps -Dwarnings
|
- cargo clippy -- --no-deps -Dwarnings
|
||||||
when:
|
|
||||||
event: [push]
|
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
branches: [dev]
|
|
||||||
platform: 'linux/amd64'
|
platform: 'linux/amd64'
|
||||||
|
|
||||||
|
when:
|
||||||
|
branch: dev
|
||||||
|
event: push
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
dev:
|
dev:
|
||||||
image: 'woodpeckerci/plugin-docker-buildx'
|
image: 'woodpeckerci/plugin-docker-buildx'
|
||||||
secrets:
|
secrets:
|
||||||
|
@ -16,6 +20,3 @@ pipeline:
|
||||||
- 'dev'
|
- 'dev'
|
||||||
platforms: [ 'linux/amd64' ]
|
platforms: [ 'linux/amd64' ]
|
||||||
mtu: 1300
|
mtu: 1300
|
||||||
when:
|
|
||||||
event: push
|
|
||||||
branch: dev
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
platform: 'linux/amd64'
|
platform: 'linux/amd64'
|
||||||
|
|
||||||
branches:
|
when:
|
||||||
exclude: [main]
|
branch:
|
||||||
|
exclude: [main]
|
||||||
|
event: push
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
lint:
|
lint:
|
||||||
image: 'rust:1.70-alpine3.18'
|
image: 'rust:1.70-alpine3.18'
|
||||||
commands:
|
commands:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
when:
|
|
||||||
event: [push]
|
|
||||||
|
|
Loading…
Reference in New Issue