From 922c0324cdb6bfee70606393792e6a320463ba9b Mon Sep 17 00:00:00 2001 From: Antonio Davide Date: Fri, 8 Sep 2023 16:13:30 +0200 Subject: [PATCH] chore: update build.yml --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff2f6d30..1c92c6c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,14 +15,16 @@ jobs: - name: Install dependencies run: | + sudo add-apt-repository ppa:beineri/opt-qt-5.15.0-focal sudo apt-get update - sudo apt-get install -y build-essential gcc-10 g++-10 qt5-default libqt5x11extras5-dev cmake + sudo apt-get install -y build-essential gcc-10 g++-10 qt515base qt515x11extras cmake sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10 git submodule update --init --recursive - name: Build shell: bash run: | + source /opt/qt515/bin/qt515-env.sh mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. @@ -32,6 +34,7 @@ jobs: - name: Prepare AppImage shell: bash run: | + source /opt/qt515/bin/qt515-env.sh cd 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 @@ -43,6 +46,7 @@ jobs: - name: Generate AppImage run: | + source /opt/qt515/bin/qt515-env.sh cd build LD_LIBRARY_PATH=$PWD/AppDir/usr/lib/x86_64-linux-gnu ./linuxdeploy-x86_64.AppImage --appdir=AppDir --plugin qt --output appimage mv REDasm-*.AppImage REDasm_Linux_AMD64_`date +%Y%m%d`.AppImage