This commit is contained in:
Felix Ableitner 2024-03-08 15:27:55 +01:00
parent b19a0d0917
commit 7e5ea8805c
2 changed files with 15 additions and 16 deletions

View File

@ -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:

View File

@ -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