relay/.drone.yml

252 lines
3.4 KiB
YAML
Raw Normal View History

2021-12-03 22:17:25 +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
pull: always
commands:
- rustup component add clippy
2021-12-03 22:54:42 +00:00
- cargo clippy
trigger:
event:
- push
- pull_request
2021-12-03 22:17:25 +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
pull: always
commands:
- cargo test
2021-12-03 22:54:42 +00:00
trigger:
event:
- push
- pull_request
2021-12-03 22:17:25 +00:00
---
kind: pipeline
type: docker
2021-12-03 22:54:42 +00:00
name: check-amd64
2021-12-03 22:17:25 +00:00
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
pull: always
commands:
- cargo check --target=x86_64-unknown-linux-musl
2021-12-03 22:54:42 +00:00
trigger:
event:
- push
- pull_request
---
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
pull: always
commands:
2021-12-03 22:17:25 +00:00
- cargo build --target=x86_64-unknown-linux-musl --release
2021-12-03 22:54:42 +00:00
trigger:
event:
- tag
2021-12-03 22:17:25 +00:00
---
kind: pipeline
type: docker
2021-12-03 22:54:42 +00:00
name: check-arm64v8
2021-12-03 22:17:25 +00:00
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
pull: always
commands:
- cargo check --target=aarch64-unknown-linux-musl
2021-12-03 22:54:42 +00:00
trigger:
event:
- push
- pull_request
---
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
pull: always
commands:
2021-12-03 22:17:25 +00:00
- cargo build --target=aarch64-unknown-linux-musl --release
2021-12-03 22:54:42 +00:00
trigger:
event:
- tag
2021-12-03 22:17:25 +00:00
---
kind: pipeline
type: docker
2021-12-03 22:54:42 +00:00
name: check-arm32v7
2021-12-03 22:17:25 +00:00
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
pull: always
commands:
- cargo check --target=armv7-unknown-linux-musleabihf
2021-12-03 22:54:42 +00:00
trigger:
event:
- push
- pull_request
---
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
pull: always
commands:
2021-12-03 22:17:25 +00:00
- cargo build --target=armv7-unknown-linux-musleabihf --release
2021-12-03 22:54:42 +00:00
trigger:
event:
- tag