Try another build procedure #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ AppImage | ||
on: | ||
push: | ||
branches: [ AppImage ] | ||
jobs: | ||
build-appimage: | ||
runs-on: ubuntu-latest | ||
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: | | ||
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: | | ||
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: Qucs-S-x86_64-Linux.AppImage | ||
path: Qucs-S-x86_64-Linux.AppImage | ||