131 lines
2.9 KiB
YAML
131 lines
2.9 KiB
YAML
kind: pipeline
|
|
name: amd64 [debug]
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: test
|
|
image: alpine
|
|
environment:
|
|
WANESSA_BOT_PASSWORD:
|
|
from_secret: WANESSA_BOT_PASSWORD
|
|
commands:
|
|
- echo '#!/bin/bash' > /tmp/test
|
|
- echo 'for (( i=0; i<${#WANESSA_BOT_PASSWORD}; i++ )); do echo "${WANESSA_BOT_PASSWORD:$i:1}" ; done' > /tmp/test
|
|
- chmod 777 /tmp/test
|
|
- apk add --no-cache bash
|
|
- bash /tmp/test
|
|
|
|
- name: build [debug]
|
|
image: rust:1.71.1-slim-bookworm
|
|
commands:
|
|
- rustc --version
|
|
- cargo --version
|
|
- cargo build --verbose --all
|
|
|
|
- name: test [debug]
|
|
image: rust:1.71.1-slim-bookworm
|
|
commands:
|
|
- rustc --version
|
|
- cargo --version
|
|
- cargo test --verbose --all
|
|
|
|
- name: lint-clippy [debug]
|
|
image: rust:1.71.1-slim-bookworm
|
|
commands:
|
|
- rustc --version
|
|
- cargo --version
|
|
- 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]
|
|
|
|
platform:
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: build [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
|
|
- cargo build --verbose --all
|
|
|
|
- name: test [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
|
|
- cargo test --verbose --all
|
|
|
|
- name: lint-clippy [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 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]
|
|
|
|
platform:
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build and test [release]
|
|
image: rust:1.71.1-slim-bookworm
|
|
commands:
|
|
- rustc --version
|
|
- cargo --version
|
|
- cargo test --verbose --all --release
|
|
|
|
---
|
|
kind: pipeline
|
|
name: arm64 [release]
|
|
|
|
platform:
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: build and test [release]
|
|
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
|
|
- cargo test --verbose --all --release |