auto-format #20

Merged
leon merged 143 commits from auto-format into main 2024-02-14 01:18:02 +01:00
Showing only changes of commit 60117916d9 - Show all commits

View File

@ -40,14 +40,6 @@ steps:
- rustup component add clippy - rustup component add clippy
- cargo clippy --verbose --all - 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 kind: pipeline
name: arm64 [debug] name: arm64 [debug]
@ -87,17 +79,6 @@ steps:
- rustup component add clippy - rustup component add clippy
- cargo clippy --verbose --all - 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 kind: pipeline
name: amd64 [release] name: amd64 [release]
@ -130,3 +111,28 @@ steps:
- echo "nameserver 1.1.1.1" >> /etc/resolv.conf - echo "nameserver 1.1.1.1" >> /etc/resolv.conf
- echo "nameserver 1.0.0.1" >> /etc/resolv.conf - echo "nameserver 1.0.0.1" >> /etc/resolv.conf
- cargo test --verbose --all --release - 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]