Use environment variable for dependencies.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5f2881d1c8
commit
47429c2df2
|
@ -2,14 +2,17 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
environment:
|
||||||
|
DEPENDENCIES: cmake pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:bullseye
|
image: rust:bullseye
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy rustfmt
|
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
- apt-get install -qqy cmake pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
|
- apt-get install -qqy $DEPENDENCIES
|
||||||
|
- rustup component add clippy rustfmt
|
||||||
- cargo fmt --check
|
- cargo fmt --check
|
||||||
- cargo test
|
- cargo test
|
||||||
- cargo clippy
|
- cargo clippy
|
||||||
|
@ -18,7 +21,7 @@ steps:
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
- apt-get install -qqy cmake pkg-config libx11-dev libasound2-dev libudev-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libvulkan-dev libpulse-dev
|
- apt-get install -qqy $DEPENDENCIES
|
||||||
- cargo publish --no-verify
|
- cargo publish --no-verify
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user