mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-26 12:01:08 +00:00
reorder
This commit is contained in:
parent
c73584544f
commit
ecfe769eb8
1 changed files with 29 additions and 29 deletions
|
@ -3,35 +3,6 @@ variables:
|
|||
|
||||
steps:
|
||||
|
||||
build_release:
|
||||
image: *rust_image
|
||||
environment:
|
||||
CARGO_HOME: .cargo_home
|
||||
commands:
|
||||
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||
- rustup target add wasm32-unknown-unknown
|
||||
- ./cargo-binstall -y trunk
|
||||
- ./.cargo_home/bin/trunk build --release
|
||||
- cargo build --release
|
||||
- ls -la target/release/ibis
|
||||
- cp target/release/ibis .
|
||||
- gzip ibis
|
||||
- ls -la ibis.gz
|
||||
when:
|
||||
event: tag
|
||||
|
||||
publish_release:
|
||||
image: woodpeckerci/plugin-github-release
|
||||
settings:
|
||||
files:
|
||||
- ibis.gz
|
||||
title: ${CI_COMMIT_TAG##v}
|
||||
api-key:
|
||||
from_secret: github_token
|
||||
when:
|
||||
event: tag
|
||||
|
||||
cargo_fmt:
|
||||
image: *rust_image
|
||||
environment:
|
||||
|
@ -91,6 +62,35 @@ steps:
|
|||
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
||||
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast
|
||||
|
||||
build_release:
|
||||
image: *rust_image
|
||||
environment:
|
||||
CARGO_HOME: .cargo_home
|
||||
commands:
|
||||
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||
- rustup target add wasm32-unknown-unknown
|
||||
- ./cargo-binstall -y trunk
|
||||
- ./.cargo_home/bin/trunk build --release
|
||||
- cargo build --release
|
||||
- ls -la target/release/ibis
|
||||
- cp target/release/ibis .
|
||||
- gzip ibis
|
||||
- ls -la ibis.gz
|
||||
when:
|
||||
event: tag
|
||||
|
||||
publish_release:
|
||||
image: woodpeckerci/plugin-github-release
|
||||
settings:
|
||||
files:
|
||||
- ibis.gz
|
||||
title: ${CI_COMMIT_TAG##v}
|
||||
api-key:
|
||||
from_secret: github_token
|
||||
when:
|
||||
event: tag
|
||||
|
||||
services:
|
||||
database:
|
||||
image: postgres:15.2-alpine
|
||||
|
|
Loading…
Reference in a new issue