This commit is contained in:
Felix Ableitner 2024-03-06 15:58:00 +01:00
parent c73584544f
commit ecfe769eb8
1 changed files with 29 additions and 29 deletions

View File

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