mirror of
https://github.com/Nutomic/ibis.git
synced 2025-02-04 10:54:40 +00:00
Add release script
This commit is contained in:
parent
c341b87d5f
commit
a77377c192
2 changed files with 20 additions and 18 deletions
|
@ -3,6 +3,20 @@ variables:
|
||||||
|
|
||||||
steps:
|
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:/.cargo_home/bin/"
|
||||||
|
- ./scripts/build-release
|
||||||
|
#when:
|
||||||
|
# event: tag
|
||||||
|
|
||||||
cargo_fmt:
|
cargo_fmt:
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
environment:
|
environment:
|
||||||
|
@ -70,24 +84,6 @@ steps:
|
||||||
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
||||||
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast
|
- 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:
|
publish_release:
|
||||||
image: woodpeckerci/plugin-github-release
|
image: woodpeckerci/plugin-github-release
|
||||||
settings:
|
settings:
|
||||||
|
|
6
scripts/build_release.sh
Executable file
6
scripts/build_release.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CARGO_TARGET_DIR=target/frontend trunk build --release
|
||||||
|
cargo build --release
|
||||||
|
gzip target/release/ibis -c > ibis.gz
|
Loading…
Reference in a new issue