Added release stage to CI
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
b9b971f1b0
commit
b811bdc9ac
|
@ -23,39 +23,29 @@ pipeline:
|
||||||
- cargo install cargo-appimage --version 1.4.0
|
- cargo install cargo-appimage --version 1.4.0
|
||||||
# Build appimage
|
# Build appimage
|
||||||
- cargo appimage
|
- cargo appimage
|
||||||
|
- mkdir -p release
|
||||||
build_appimage_cli:
|
- cp *.AppImage release/
|
||||||
image: rust:bullseye
|
|
||||||
group: build_release_files
|
|
||||||
commands:
|
|
||||||
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
|
||||||
libxcb-xfixes0-dev python3-pip python3-setuptools patchelf
|
|
||||||
desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
|
||||||
# Install appimage tool
|
|
||||||
- (cd /tmp/ &&
|
|
||||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage &&
|
|
||||||
chmod +x appimagetool-x86_64.AppImage &&
|
|
||||||
./appimagetool-x86_64.AppImage --appimage-extract &&
|
|
||||||
cp -avr squashfs-root/usr/* /usr/)
|
|
||||||
- export CARGO_HOME=/root/.cargo
|
|
||||||
- cargo install cargo-appimage --version 1.4.0
|
|
||||||
# Build appimage
|
|
||||||
- cargo appimage --no-default-features
|
|
||||||
|
|
||||||
build_windows:
|
build_windows:
|
||||||
image: rust:bullseye
|
image: rust:bullseye
|
||||||
group: build_release_files
|
group: build_release_files
|
||||||
commands:
|
commands:
|
||||||
- apt update && apt install -y mingw-w64
|
- apt update && apt install -y mingw-w64 zip
|
||||||
- rustup target add x86_64-pc-windows-gnu
|
- rustup target add x86_64-pc-windows-gnu
|
||||||
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
||||||
- cargo build --target x86_64-pc-windows-gnu
|
- cargo build --target x86_64-pc-windows-gnu --release
|
||||||
|
- mkdir -p release
|
||||||
|
- cp target/x86_64-pc-windows-gnu/release/apt-decoder.exe release/
|
||||||
|
- cd release && zip apt-decoder-win.zip apt-decoder.exe && rm apt-decoder.exe
|
||||||
|
|
||||||
build_windows_cli:
|
release:
|
||||||
image: rust:bullseye
|
image: plugins/gitea-release
|
||||||
group: build_release_files
|
settings:
|
||||||
commands:
|
files: release/*
|
||||||
- apt update && apt install -y mingw-w64
|
api_key:
|
||||||
- rustup target add x86_64-pc-windows-gnu
|
from_secret: api_key
|
||||||
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
base_url:
|
||||||
- cargo build --target x86_64-pc-windows-gnu --no-default-features
|
from_secret: base_url
|
||||||
|
secrets: [api_key, base_url]
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
Loading…
Reference in New Issue