diff --git a/.woodpecker.yml b/.woodpecker.yml index cf7c4fe..62e8f3b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -20,10 +20,28 @@ pipeline: ./appimagetool-x86_64.AppImage --appimage-extract && cp -avr squashfs-root/usr/* /usr/) - export CARGO_HOME=/root/.cargo - - cargo install cargo-appimage + - cargo install cargo-appimage --version 1.4.0 # Build appimage - cargo appimage + build_appimage_cli: + 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: image: rust:bullseye group: build_release_files @@ -32,3 +50,12 @@ pipeline: - rustup target add x86_64-pc-windows-gnu - rustup toolchain install stable-x86_64-pc-windows-gnu - cargo build --target x86_64-pc-windows-gnu + + build_windows_cli: + image: rust:bullseye + group: build_release_files + commands: + - apt update && apt install -y mingw-w64 + - rustup target add x86_64-pc-windows-gnu + - rustup toolchain install stable-x86_64-pc-windows-gnu + - cargo build --target x86_64-pc-windows-gnu --no-default-features