Skip to content

Commit

Permalink
Merge pull request #800 from ra3xdh/deploy_appimage
Browse files Browse the repository at this point in the history
Add AppImage to continous release
  • Loading branch information
ra3xdh authored Jul 4, 2024
2 parents ade4c04 + 73d5918 commit 08dba8a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 113 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/appimage.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake
name: CMake Linux Qt5

on:
push:
Expand Down
46 changes: 0 additions & 46 deletions .github/workflows/cmake_qt6.yml

This file was deleted.

56 changes: 53 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,57 @@ env:
BUILD_TYPE: Release
QT_VERSION: 6.7.2
QUCS_MACOS_BIN: ./build/qucs/qucs-s.app/Contents/MacOS/bin
QUCS_MACOS_RESOURCES: ./build/qucs/qucs-s.app/Contents/MacOS/re/qucs-s/
QUCS_MACOS_RESOURCES: ./build/qucs/qucs-s.app/Contents/MacOS/share/qucs-s/

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

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y qt6-base-dev qt6-tools-dev qt6-tools-dev-tools libglx-dev linguist-qt6 qt6-l10n-tools libqt6svg6-dev libgl1-mesa-dev
sudo apt-get install -y flex bison gperf dos2unix
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=/usr -DWITH_QT6=ON

- name: Build
# Build your program with the given configuration
run: |
cmake --build ${{github.workspace}}/build -j`nproc` --config ${{env.BUILD_TYPE}}
make -C ${{github.workspace}}/build install DESTDIR=${{github.workspace}}/AppDir
- name: Install linuxdeploy
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
sudo apt-get install fuse libfuse2
chmod +x linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- name: 'Create AppImage'
run: |
export QMAKE=/usr/bin/qmake6
./linuxdeploy-x86_64.AppImage --appdir ${{github.workspace}}/AppDir --desktop-file=${{github.workspace}}/AppDir/usr/share/applications/qucs-s.desktop --icon-file=${{github.workspace}}/AppDir/usr/share/icons/hicolor/256x256/apps/qucs-s.png --plugin=qt --output appimage
rm linuxdeploy-x86_64.AppImage
rm linuxdeploy-plugin-qt-x86_64.AppImage
mv *.AppImage Qucs-S-x86_64-Linux.AppImage
- name: 'Upload artifact: AppImage'
uses: actions/upload-artifact@v2
with:
name: Qucs-S-x86_64-Linux.AppImage
path: Qucs-S-x86_64-Linux.AppImage


build-mac-intel:
runs-on: macos-12
strategy:
Expand Down Expand Up @@ -274,7 +322,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs:
#- build-linux
- build-linux-appimage-qt6
- build-mac-intel
- build-mac-arm
- build-windows
Expand All @@ -301,12 +349,14 @@ jobs:
# Find existing zip and dmg files
zip_files=$(find ~/artifacts -name "*.zip" -print0 | xargs -0 echo)
dmg_files=$(find ~/artifacts -name "*.dmg" -print0 | xargs -0 echo)
appimage_files=$(find ~/artifacts -name "*.AppImage" -print0 | xargs -0 echo)
# Create release only if there are files to upload
if [ -n "$zip_files" ] || [ -n "$dmg_files" ]; then
if [ -n "$zip_files" ] || [ -n "$dmg_files" ] || [ -n "$appimage_files" ]; then
gh release create continuous_build \
$zip_files \
$dmg_files \
$appimage_files \
-p \
--repo $GITHUB_REPOSITORY \
--title "Continuous build" \
Expand Down

0 comments on commit 08dba8a

Please sign in to comment.