Skip to content

Commit

Permalink
chore: Adding workflow to build AppImage package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdemb committed May 14, 2024
1 parent 27ae8c4 commit 8e94f56
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: AppImage build

on:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y libdbus-1-dev
- name: Build
run: cd code && cargo build --verbose
- name: Run tests
run: cd code && cargo test --verbose
- name: Install AppImage tool
run: |
sudo apt install -y binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
sudo chmod +x /usr/local/bin/appimagetool
cd code && cargo install cargo-appimage
- name: Build AppImage
run: cd code && cargo appimage
- uses: actions/upload-artifact@v2
with:
name: AppImage

0 comments on commit 8e94f56

Please sign in to comment.