37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: fmt
|
|
image: rust:1.43.0
|
|
commands:
|
|
- rustup component add rustfmt
|
|
- cargo fmt --all -- --check
|
|
- name: test
|
|
image: rust:1.43.0
|
|
commands:
|
|
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
|
- 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
|
|
|
|
- name: build
|
|
image: rust:1.43.0
|
|
commands:
|
|
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
|
- 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 install -f --path . --root .
|
|
when:
|
|
event: tag
|
|
- name: publish
|
|
image: plugins/github-release
|
|
settings:
|
|
api_key:
|
|
from_secret: github_release
|
|
files:
|
|
- bin/fido2luks
|
|
checksum:
|
|
- md5
|
|
- sha256
|
|
when:
|
|
event: tag
|