auto-format #20
44
.drone.yml
44
.drone.yml
@ -40,14 +40,6 @@ steps:
|
||||
- rustup component add clippy
|
||||
- cargo clippy --verbose --all
|
||||
|
||||
- name: format [debug]
|
||||
image: rust:1.71.1-slim-bookworm
|
||||
commands:
|
||||
- rustc --version
|
||||
- cargo --version
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --verbose --all --check
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: arm64 [debug]
|
||||
@ -87,17 +79,6 @@ steps:
|
||||
- rustup component add clippy
|
||||
- cargo clippy --verbose --all
|
||||
|
||||
- name: format [debug]
|
||||
image: rust:1.71.1-slim-bookworm
|
||||
commands:
|
||||
- rustc --version
|
||||
- cargo --version
|
||||
# Stupid workarounds, for stupid problems
|
||||
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --verbose --all --check
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: amd64 [release]
|
||||
@ -130,3 +111,28 @@ steps:
|
||||
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- cargo test --verbose --all --release
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: format
|
||||
steps:
|
||||
- name: Format Project with rustfmt
|
||||
image: rust:1.71.1-alpine
|
||||
commands:
|
||||
- rustc --version
|
||||
- cargo --version
|
||||
# Stupid workarounds, for stupid problems
|
||||
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf
|
||||
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --all --verbose
|
||||
- git add *
|
||||
- git status
|
||||
- git commit -m "rustfmt"
|
||||
- git push
|
||||
|
||||
depends_on:
|
||||
- amd64 [debug]
|
||||
- arm64 [debug]
|
||||
- amd64 [release]
|
||||
- arm64 [release]
|
Reference in New Issue
Block a user