Skip to content

Try to fix workflows for qt6 #106

Try to fix workflows for qt6

Try to fix workflows for qt6 #106

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@v2
- name: Install Dependencies
shell: bash
run: |
apt-get update && apt-get install -y sudo
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
source /opt/qt*/bin/qt*-env.sh || true
export CXX=clang++
qmake -spec linux-clang 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@v3
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 }}