mirror of https://github.com/qarmin/czkawka
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
4.4 KiB
YAML
145 lines
4.4 KiB
YAML
2 years ago
|
name: 🐧 Linux GUI
|
||
3 years ago
|
on:
|
||
|
push:
|
||
|
pull_request:
|
||
|
schedule:
|
||
|
- cron: '0 0 * * 2'
|
||
4 years ago
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
|
||
|
jobs:
|
||
2 years ago
|
linux-gui:
|
||
4 years ago
|
strategy:
|
||
|
matrix:
|
||
2 years ago
|
toolchain: [ stable, 1.63.0 ]
|
||
4 years ago
|
type: [ release ]
|
||
2 years ago
|
runs-on: ubuntu-22.04
|
||
4 years ago
|
steps:
|
||
2 years ago
|
- uses: actions/checkout@v3
|
||
4 years ago
|
|
||
|
- uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: ${{ matrix.toolchain }}
|
||
|
override: true
|
||
|
|
||
2 years ago
|
- uses: actions/cache@v3
|
||
4 years ago
|
with:
|
||
|
path: |
|
||
|
target
|
||
2 years ago
|
key: linux-default-${{github.ref}}-${{github.sha}}
|
||
4 years ago
|
restore-keys: |
|
||
2 years ago
|
linux-default-${{github.ref}}-${{github.sha}}
|
||
4 years ago
|
|
||
|
- name: Install basic libraries
|
||
2 years ago
|
run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev -y
|
||
4 years ago
|
|
||
2 years ago
|
- name: Build Release Heif
|
||
|
run: cargo build --release --features heif
|
||
2 years ago
|
env:
|
||
|
CARGO_INCREMENTAL: 0
|
||
|
RUSTFLAGS: "-C debuginfo=0"
|
||
2 years ago
|
if: ${{ (matrix.type == 'release') && (matrix.toolchain == '1.63.0') }}
|
||
2 years ago
|
|
||
2 years ago
|
- name: Build Release
|
||
|
run: cargo build --release
|
||
4 years ago
|
env:
|
||
|
CARGO_INCREMENTAL: 0
|
||
2 years ago
|
RUSTFLAGS: "-C debuginfo=0"
|
||
2 years ago
|
if: ${{ (matrix.type == 'release') && (matrix.toolchain == 'stable') }}
|
||
4 years ago
|
|
||
2 years ago
|
- name: Store Linux GUI
|
||
2 years ago
|
uses: actions/upload-artifact@v3
|
||
2 years ago
|
with:
|
||
|
name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}
|
||
|
path: target/release/czkawka_gui
|
||
|
if: ${{ matrix.type == 'release' }}
|
||
|
|
||
|
linux-appimage-gui:
|
||
4 years ago
|
strategy:
|
||
|
matrix:
|
||
2 years ago
|
toolchain: [ stable ]
|
||
4 years ago
|
type: [ release ]
|
||
2 years ago
|
runs-on: ubuntu-22.04
|
||
4 years ago
|
steps:
|
||
2 years ago
|
- uses: actions/checkout@v3
|
||
4 years ago
|
|
||
|
- uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: ${{ matrix.toolchain }}
|
||
|
override: true
|
||
|
|
||
2 years ago
|
- uses: actions/cache@v3
|
||
4 years ago
|
with:
|
||
|
path: |
|
||
|
target
|
||
2 years ago
|
key: linux-appimage-gui-${{github.ref}}-${{github.sha}}
|
||
4 years ago
|
restore-keys: |
|
||
2 years ago
|
linux-appimage-gui-${{github.ref}}-${{github.sha}}
|
||
2 years ago
|
|
||
2 years ago
|
- name: Install Dependencies
|
||
|
run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y
|
||
4 years ago
|
|
||
2 years ago
|
- name: Build Release
|
||
|
run: cargo build --release
|
||
4 years ago
|
env:
|
||
|
CARGO_INCREMENTAL: 0
|
||
2 years ago
|
RUSTFLAGS: "-C debuginfo=0"
|
||
4 years ago
|
|
||
2 years ago
|
- name: Download appimage dependiences
|
||
|
run: |
|
||
|
pwd
|
||
|
wget -c "https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
|
||
|
wget -c "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
|
||
|
chmod +x linuxdeploy-plugin-gtk.sh
|
||
|
chmod +x linuxdeploy-x86_64.AppImage
|
||
|
mkdir -p AppDir/usr/bin
|
||
|
pwd
|
||
|
cp target/release/czkawka_gui AppDir/usr/bin
|
||
|
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin gtk --output appimage --icon-file data/icons/com.github.qarmin.czkawka.svg --desktop-file data/com.github.qarmin.czkawka.desktop
|
||
4 years ago
|
|
||
2 years ago
|
- name: Store Linux Appimage GUI
|
||
2 years ago
|
uses: actions/upload-artifact@v3
|
||
4 years ago
|
with:
|
||
2 years ago
|
name: czkawka_gui-appimage-${{ runner.os }}-${{ matrix.toolchain }}
|
||
|
path: Czkawka*.AppImage
|
||
4 years ago
|
|
||
3 years ago
|
- name: Minimal AppImage
|
||
|
run: |
|
||
|
pwd
|
||
|
rm -rf czkawka_gui
|
||
|
cp target/release/czkawka_gui .
|
||
|
strip czkawka_gui
|
||
3 years ago
|
wget https://github.com/AppImage/pkg2appimage/releases/download/continuous/pkg2appimage-1807-x86_64.AppImage
|
||
|
chmod +x pkg2appimage-1807-x86_64.AppImage
|
||
|
./pkg2appimage-1807-x86_64.AppImage misc/czkawka-appimage-recipe.yml
|
||
3 years ago
|
mv out/Czkawka*.AppImage out/czkawka_gui-minimal.AppImage
|
||
|
|
||
|
- name: Minimal Appimage Upload
|
||
2 years ago
|
uses: actions/upload-artifact@v3
|
||
3 years ago
|
with:
|
||
3 years ago
|
name: czkawka_gui-${{ matrix.toolchain }}_minimal_AppImage
|
||
3 years ago
|
path: out/*.AppImage
|
||
|
|
||
2 years ago
|
linux-tests:
|
||
4 years ago
|
strategy:
|
||
|
matrix:
|
||
|
toolchain: [ stable ]
|
||
2 years ago
|
type: [ debug ]
|
||
2 years ago
|
runs-on: ubuntu-22.04
|
||
4 years ago
|
steps:
|
||
2 years ago
|
- uses: actions/checkout@v3
|
||
4 years ago
|
|
||
|
- uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: ${{ matrix.toolchain }}
|
||
|
override: true
|
||
|
|
||
2 years ago
|
- name: Install Dependencies
|
||
|
run: sudo apt-get update; sudo apt install libgtk-4-dev libheif-dev librsvg2-dev wget fuse libfuse2 -y xvfb
|
||
4 years ago
|
|
||
2 years ago
|
- name: Test
|
||
|
run: xvfb-run cargo test
|
||
4 years ago
|
env:
|
||
|
CARGO_INCREMENTAL: 0
|
||
2 years ago
|
RUSTFLAGS: "-C debuginfo=0"
|