Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
2bc0e2d64a
|
|||
5cb3982d65
|
|||
e28828cc2b
|
|||
95fb630a0b
|
|||
85e4a30420
|
|||
36dc36d454
|
|||
eed2dad08f
|
|||
e3bd32c985
|
|||
ce43cf857d
|
|||
6c2f5fc7ec
|
|||
8f47f7a556
|
33
.drone.yml
33
.drone.yml
@@ -3,27 +3,32 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fmt
|
- name: fmt
|
||||||
image: rust:1.43.0
|
image: rust:1.37.0
|
||||||
commands:
|
commands:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.43.0
|
image: rust:1.37.0
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
- apt update && apt install -y libcryptsetup-dev libkeyutils-dev
|
||||||
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
|
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
- name: publish
|
- name: build
|
||||||
image: rust:1.43.0
|
image: rust:1.37.0
|
||||||
environment:
|
|
||||||
CARGO_REGISTRY_TOKEN:
|
|
||||||
from_secret: cargo_tkn
|
|
||||||
commands:
|
commands:
|
||||||
- grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1)
|
- apt update && apt install -y libcryptsetup-dev libkeyutils-dev
|
||||||
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
- cargo install -f --path . --root .
|
||||||
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
|
|
||||||
- cargo package --all-features
|
|
||||||
- cargo publish --all-features
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
- name: publish
|
||||||
|
image: plugins/github-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: github_release
|
||||||
|
files:
|
||||||
|
- bin/fido2luks
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
Reference in New Issue
Block a user