mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-09 23:01:25 +00:00
cleanup
This commit is contained in:
parent
b19a0d0917
commit
7e5ea8805c
2 changed files with 15 additions and 16 deletions
|
@ -3,21 +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
|
||||
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
|
||||
- echo $PATH
|
||||
- ./scripts/build_release.sh
|
||||
#when:
|
||||
# event: tag
|
||||
|
||||
cargo_fmt:
|
||||
image: rustlang/rust:nightly
|
||||
environment:
|
||||
|
@ -85,6 +70,20 @@ 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
|
||||
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
|
||||
- ./scripts/build_release.sh
|
||||
when:
|
||||
event: tag
|
||||
|
||||
publish_release:
|
||||
image: woodpeckerci/plugin-github-release
|
||||
settings:
|
||||
|
|
|
@ -3,4 +3,4 @@ set -e
|
|||
|
||||
CARGO_TARGET_DIR=target/frontend trunk build --release
|
||||
cargo build --release
|
||||
gzip target/release/ibis -c > ibis.gz
|
||||
gzip target/release/ibis -c > ibis.gz
|
||||
|
|
Loading…
Reference in a new issue