Skip to content

github CI yaml with packaging #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build DSView AppImage

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:

jobs:
build-appimage:
runs-on: ubuntu-22.04

steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
git gcc g++ make cmake qtbase5-dev qt5-qmake qtbase5-dev-tools \
libglib2.0-dev zlib1g-dev libusb-1.0-0-dev libboost-dev \
libfftw3-dev python3-dev libudev-dev pkg-config patchelf wget file

- name: Clone DSView
run: |
git clone https://github.com/DreamSourceLab/DSView.git

- name: Build and install DSView
run: |
cd DSView
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
make DESTDIR=$PWD/AppDir install

- name: Download linuxdeploy and plugins
run: |
mkdir -p $HOME/linuxdeploy
cd $HOME/linuxdeploy
wget -c https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget -c https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy-*.AppImage

- name: Build AppImage
run: |
cd DSView/build
export VERSION="$(git describe --tags --always)"
export APPIMAGE_EXTRACT_AND_RUN=1

$HOME/linuxdeploy/linuxdeploy-x86_64.AppImage --appdir AppDir \
--output appimage \
--plugin qt

- name: Upload AppImage artifact
uses: actions/upload-artifact@v4
with:
name: DSView-AppImage
path: DSView/build/*.AppImage