Skip to content

Commit

Permalink
Try another build procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Jun 18, 2023
1 parent 53ea1fd commit 9c821ce
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,39 @@ jobs:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: install dependencies
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qtbase5-dev qttools5-dev qtscript5-dev libqt5svg5-dev flex bison
- name: configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: build
run: |
cmake --build ${{github.workspace}}/build -j`nproc`
cmake --install ${{github.workspace}}/build --prefix ${{github.workspace}}/AppDir
- name: 'Install linuxdeploy'
run: |
sudo apt-get update
sudo apt-get install -y qtbase5-dev qttools5-dev qtscript5-dev libqt5svg5-dev flex bison
- name: configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: build
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
chmod +x linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- name: 'Create AppImage'
run: |
cmake --build ${{github.workspace}}/build -j`nproc`
cmake --install ${{github.workspace}}/build --prefix ${{github.workspace}}/AppDir
- name: Build AppImage
uses: AppImageCrafters/build-appimage-action@master
env:
UPDATE_INFO: gh-releases-zsync|ra3xdh|qucs_s|latest|*x86_64.AppImage.zsync
with:
recipe: AppImageBuilder.yml
- uses: actions/upload-artifact@v2
export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}"
export QMAKE=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/bin/${{env.QMAKE}}
export PATH=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH
./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: AppImage
path: './*.AppImage*'
name: Qucs-S-x86_64-Linux.AppImage
path: Qucs-S-x86_64-Linux.AppImage


0 comments on commit 9c821ce

Please sign in to comment.