Skip to content

Port to Qt6 (#110) #123

Port to Qt6 (#110)

Port to Qt6 (#110) #123

name: Ubuntu 20.04
on: push
jobs:
buildOnUbuntu:
runs-on: ubuntu-20.04
container:
image: ubuntu:20.04 # yes, this looks redundant, but something is messed up with their Ubuntu image that causes our builds to fail
steps:
- name: checkout sources
uses: actions/checkout@v4
- name: Install Dependencies
shell: bash
run: |
apt-get update && apt-get install -y sudo p7zip-full wget file
sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.0'
arch: 'linux_gcc_64'
extra: '--external 7z'
modules: 'qtimageformats'
- name: Build Laigter
shell: bash
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
qmake CONFIG+=release PREFIX=/usr
make -j$(nproc)
make INSTALL_ROOT=appdir install
find appdir/
mkdir -p appdir/usr/lib
export APPIMAGE_EXTRACT_AND_RUN=1
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
if [[ "$RELEASE_VERSION" != "" ]]; then export VERSION=$RELEASE_VERSION;fi
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -extra-plugins=imageformats -appimage -verbose=2
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: test-artifact
path: Laigter-x86_64.AppImage
- name: GitHub Releases
uses: fnkr/github-action-ghr@v1.3
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: Laigter-x86_64.AppImage
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}