2022-02-12 23:53:12 +01:00
|
|
|
pipeline:
|
2022-06-15 20:43:37 +02:00
|
|
|
audit:
|
|
|
|
image: dbrgn/cargo-audit
|
|
|
|
commands:
|
|
|
|
- cargo audit
|
|
|
|
|
2022-02-12 23:53:12 +01:00
|
|
|
build:
|
|
|
|
image: rust:bullseye
|
2022-02-13 21:08:10 +01:00
|
|
|
commands:
|
|
|
|
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
|
|
|
libxcb-xfixes0-dev
|
|
|
|
- cargo build --release
|
|
|
|
|
|
|
|
build_appimage:
|
|
|
|
image: rust:bullseye
|
|
|
|
group: build_release_files
|
2022-02-12 23:53:12 +01:00
|
|
|
commands:
|
2022-02-13 19:50:03 +01:00
|
|
|
- apt update && apt install -y libgtk-3-dev libxcb-shape0-dev
|
|
|
|
libxcb-xfixes0-dev python3-pip python3-setuptools patchelf
|
2022-02-12 23:53:12 +01:00
|
|
|
desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
2022-02-13 21:08:10 +01:00
|
|
|
# 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
|
2022-04-10 17:41:14 +02:00
|
|
|
- cargo install cargo-appimage --version 1.4.0
|
2022-02-13 21:08:10 +01:00
|
|
|
# Build appimage
|
2022-02-12 23:53:12 +01:00
|
|
|
- cargo appimage
|
2022-04-10 19:43:16 +02:00
|
|
|
- mkdir -p release
|
|
|
|
- cp *.AppImage release/
|
2022-04-10 17:41:14 +02:00
|
|
|
|
2022-02-13 21:08:10 +01:00
|
|
|
build_windows:
|
|
|
|
image: rust:bullseye
|
|
|
|
group: build_release_files
|
|
|
|
commands:
|
2022-04-10 19:43:16 +02:00
|
|
|
- apt update && apt install -y mingw-w64 zip
|
2022-02-13 21:08:10 +01:00
|
|
|
- rustup target add x86_64-pc-windows-gnu
|
|
|
|
- rustup toolchain install stable-x86_64-pc-windows-gnu
|
2022-04-10 19:43:16 +02:00
|
|
|
- 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
|
2022-04-10 17:41:14 +02:00
|
|
|
|
2022-04-10 19:43:16 +02:00
|
|
|
release:
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
files: release/*
|
|
|
|
api_key:
|
|
|
|
from_secret: api_key
|
|
|
|
base_url:
|
|
|
|
from_secret: base_url
|
|
|
|
secrets: [api_key, base_url]
|
|
|
|
when:
|
|
|
|
event: tag
|