tracing-awc/.drone.yml

147 lines
2.9 KiB
YAML
Raw Normal View History

2021-12-03 20:04:19 +00:00
kind: pipeline
type: docker
name: clippy
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: clippy
image: asonix/rust-builder:amd64-latest
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
- rustup component add clippy
- cargo clippy
2021-12-03 20:18:10 +00:00
- cargo clippy --features opentelemetry_0_13
- cargo clippy --features opentelemetry_0_14
- cargo clippy --features opentelemetry_0_15
- cargo clippy --features opentelemetry_0_16
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
name: tests
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: tests
image: asonix/rust-builder:amd64-latest
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
- cargo test
---
kind: pipeline
type: docker
name: build-amd64
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:amd64-latest
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=x86_64-unknown-linux-musl
2021-12-03 20:04:19 +00:00
- cargo build --target=x86_64-unknown-linux-musl --release
2021-12-03 20:08:36 +00:00
- cargo build --target=x86_64-unknown-linux-musl --example client --features opentelemetry_0_16 --release
- cargo build --target=x86_64-unknown-linux-musl --example server --features opentelemetry_0_16 --release
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
name: build-arm64v8
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:arm64v8-latest
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=aarch64-unknown-linux-musl
2021-12-03 20:04:19 +00:00
- cargo build --target=aarch64-unknown-linux-musl --release
2021-12-03 20:08:36 +00:00
- cargo build --target=aarch64-unknown-linux-musl --example client --features opentelemetry_0_16 --release
- cargo build --target=aarch64-unknown-linux-musl --example server --features opentelemetry_0_16 --release
2021-12-03 20:04:19 +00:00
---
kind: pipeline
type: docker
name: build-arm32v7
platform:
arch: amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git:latest
user: root
commands:
- git clone $DRONE_GIT_HTTP_URL .
- git checkout $DRONE_COMMIT
- chown -R 991:991 .
- name: build
image: asonix/rust-builder:arm32v7-latest
2021-12-03 21:37:48 +00:00
pull: always
2021-12-03 20:04:19 +00:00
commands:
2021-12-03 20:06:10 +00:00
- cargo check --target=armv7-unknown-linux-musleabihf
2021-12-03 20:04:19 +00:00
- cargo build --target=armv7-unknown-linux-musleabihf --release
2021-12-03 20:08:36 +00:00
- cargo build --target=armv7-unknown-linux-musleabihf --example client --features opentelemetry_0_16 --release
- cargo build --target=armv7-unknown-linux-musleabihf --example server --features opentelemetry_0_16 --release