From 84e7d85137547237a415013f5e0a8a3f1e63b608 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 18 Jun 2022 20:54:22 +0200 Subject: [PATCH] Speed up CI using prebuild image --- .woodpecker.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9801fd9..5b11fb8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,38 +1,22 @@ pipeline: build: - image: rust:bullseye + image: sebastian/apt-decoder-ci commands: - - apt update && apt install -y libgtk-3-dev libxcb-shape0-dev - libxcb-xfixes0-dev - cargo build --release build_appimage: - image: rust:bullseye + image: sebastian/apt-decoder-ci 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 - mkdir -p release - cp *.AppImage release/ build_windows: - image: rust:bullseye + image: sebastian/apt-decoder-ci group: build_release_files commands: - - apt update && apt install -y mingw-w64 zip - - 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 --release - mkdir -p release - cp target/x86_64-pc-windows-gnu/release/apt-decoder.exe release/