This commit is contained in:
parent
6105bbdc65
commit
3de918d4bd
@ -21,20 +21,23 @@ local PipelineBuild(os='linux', arch='amd64') = {
|
|||||||
commands: [
|
commands: [
|
||||||
'[ -z "${DRONE_TAG}" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}',
|
'[ -z "${DRONE_TAG}" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}',
|
||||||
'mkdir -p source/',
|
'mkdir -p source/',
|
||||||
'apt-get update && apt-get install -y --no-install-recommends libpq-dev',
|
'apt-get -qq update && apt-get install -yqq --no-install-recommends libpq-dev ',
|
||||||
'rustup set profile minimal',
|
'rustup set profile minimal',
|
||||||
'curl -L https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1',
|
'curl -sSL https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1',
|
||||||
'ls -lah source && id',
|
'ls -lah source && id',
|
||||||
'cargo new --bin app/ && cd app/',
|
'cargo new --bin app/ && cd app/',
|
||||||
'cp ../source/Cargo.* .',
|
'cp ../source/Cargo.* .',
|
||||||
'cp ../source/rust-toolchain .',
|
'cp ../source/rust-toolchain .',
|
||||||
'cp ../source/build.rs .',
|
'cp ../source/build.rs .',
|
||||||
'rustup target add x86_64-unknown-linux-musl',
|
'rustup target add x86_64-unknown-linux-musl',
|
||||||
'cargo build --features $DB --release',
|
'cargo build -j 8 --features $DB --release',
|
||||||
'find . -not -path "./target*" -delete',
|
'find . -not -path "./target*" -delete',
|
||||||
'ls -lah',
|
'ls -lah',
|
||||||
'cp -rT ../source .',
|
'cp -rT ../source .',
|
||||||
'ls -lah'
|
'ls -lah',
|
||||||
|
'touch src/main.rs',
|
||||||
|
'cargo build -j 8 --features $DB --release',
|
||||||
|
'./target/x86_64-unknown-linux-musl/release/bitwarden_rs --help'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
|
@ -12,20 +12,23 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- "[ -z \"${DRONE_TAG}\" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}"
|
- "[ -z \"${DRONE_TAG}\" ] && BITWARDEN_VERSION=master || BITWARDEN_VERSION=${DRONE_TAG%-*}"
|
||||||
- mkdir -p source/
|
- mkdir -p source/
|
||||||
- apt-get update && apt-get install -y --no-install-recommends libpq-dev
|
- "apt-get -qq update && apt-get install -yqq --no-install-recommends libpq-dev "
|
||||||
- rustup set profile minimal
|
- rustup set profile minimal
|
||||||
- curl -L https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1
|
- curl -sSL https://github.com/dani-garcia/bitwarden_rs/archive/$BITWARDEN_VERSION.tar.gz | tar xz -C source/ --strip-components=1
|
||||||
- ls -lah source && id
|
- ls -lah source && id
|
||||||
- cargo new --bin app/ && cd app/
|
- cargo new --bin app/ && cd app/
|
||||||
- cp ../source/Cargo.* .
|
- cp ../source/Cargo.* .
|
||||||
- cp ../source/rust-toolchain .
|
- cp ../source/rust-toolchain .
|
||||||
- cp ../source/build.rs .
|
- cp ../source/build.rs .
|
||||||
- rustup target add x86_64-unknown-linux-musl
|
- rustup target add x86_64-unknown-linux-musl
|
||||||
- cargo build --features $DB --release
|
- cargo build -j 8 --features $DB --release
|
||||||
- find . -not -path "./target*" -delete
|
- find . -not -path "./target*" -delete
|
||||||
- ls -lah
|
- ls -lah
|
||||||
- cp -rT ../source .
|
- cp -rT ../source .
|
||||||
- ls -lah
|
- ls -lah
|
||||||
|
- touch src/main.rs
|
||||||
|
- cargo build -j 8 --features $DB --release
|
||||||
|
- ./target/x86_64-unknown-linux-musl/release/bitwarden_rs --help
|
||||||
environment:
|
environment:
|
||||||
DB: postgresql
|
DB: postgresql
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
Loading…
Reference in New Issue
Block a user