Update deploy.yml

This commit is contained in:
Alex Spataru 2021-12-16 16:25:07 -05:00
parent d932e6ca50
commit 001b7855cc

View File

@ -25,6 +25,7 @@ env:
QML_DIR_NIX: "assets/qml" QML_DIR_NIX: "assets/qml"
QML_DIR_WIN: "assets\\qml" QML_DIR_WIN: "assets\\qml"
PUBLISHER: "Alex Spataru" PUBLISHER: "Alex Spataru"
QT_MODULES: qtserialport qt5compat
REPO_DIR: "/home/runner/work/Serial-Studio/Serial-Studio" REPO_DIR: "/home/runner/work/Serial-Studio/Serial-Studio"
QT_VERSION: 6.2.2 QT_VERSION: 6.2.2
QMAKE: qmake6 QMAKE: qmake6
@ -56,7 +57,7 @@ jobs:
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v2
with: with:
version: ${{env.QT_VERSION}} version: ${{env.QT_VERSION}}
modules: qtserialport qt5compat modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0' aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}} cached: ${{steps.cache-qt.outputs.cache-hit}}
@ -69,26 +70,25 @@ jobs:
- name: '🚧 Compile application' - name: '🚧 Compile application'
run: | run: |
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr ${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
make -j${{env.CORES}} make -j${{env.CORES}}
- name: '⚙️ Install linuxdeploy' - name: '⚙️ Install linuxdeploy'
run: | run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage 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 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-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- name: '📦 Create AppImage' - name: '📦 Create AppImage'
run: | run: |
which ${{env.QMAKE}} export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}"
export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}" export QMAKE=${{env.REPO_DIR}}/../Qt/${{env.QT_VERSION}}/gcc_64/bin/qmake6
export QMAKE=${{env.QMAKE}} export PATH=${{env.REPO_DIR}}/../Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH
export PATH=/home/runner/work/Serial-Studio/Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH ./linuxdeploy-x86_64.AppImage --appdir AppDir -e ${{env.UNIXNAME}} -i deploy/linux/${{env.UNIXNAME}}.png -d deploy/linux/${{env.UNIXNAME}}.desktop --plugin qt --output appimage
./linuxdeploy-x86_64.AppImage --appdir AppDir -e ${{env.UNIXNAME}} -i deploy/linux/${{env.UNIXNAME}}.png -d deploy/linux/${{env.UNIXNAME}}.desktop --plugin qt --output appimage rm linuxdeploy-x86_64.AppImage
rm linuxdeploy-x86_64.AppImage rm linuxdeploy-plugin-qt-x86_64.AppImage
rm linuxdeploy-plugin-qt-x86_64.AppImage mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
- name: '📤 Upload artifact: AppImage' - name: '📤 Upload artifact: AppImage'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@ -118,14 +118,14 @@ jobs:
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v2
with: with:
version: ${{env.QT_VERSION}} version: ${{env.QT_VERSION}}
modules: qtserialport qt5compat modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0' aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}} cached: ${{steps.cache-qt.outputs.cache-hit}}
- name: '🚧 Compile application' - name: '🚧 Compile application'
run: | run: |
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr ${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
make -j${{env.CORES}} make -j${{env.CORES}}
- name: '📦 Package application (macdeployqt and zipfile)' - name: '📦 Package application (macdeployqt and zipfile)'
run: | run: |
@ -170,7 +170,7 @@ jobs:
uses: jurplel/install-qt-action@v2 uses: jurplel/install-qt-action@v2
with: with:
version: ${{env.QT_VERSION}} version: ${{env.QT_VERSION}}
modules: qtserialport qt5compat modules: ${{env.QT_MODULES}}
aqtversion: '==2.0.0' aqtversion: '==2.0.0'
cached: ${{steps.cache-qt.outputs.cache-hit}} cached: ${{steps.cache-qt.outputs.cache-hit}}