mirror of
https://github.com/Xevion/orianne.git
synced 2025-12-06 05:15:42 -06:00
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: Build for Linux
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v2
|
|
with:
|
|
version: "6.5.2"
|
|
host: "linux"
|
|
target: "desktop"
|
|
arch: "gcc_64"
|
|
install-deps: "true"
|
|
|
|
- name: List files in Qt
|
|
run: find ${{env.Qt5_Dir}}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Configure CMake
|
|
run: cmake -B '${{github.workspace}}'/build
|
|
|
|
- name: Build
|
|
run: cmake --build '${{github.workspace}}'/build
|
|
|
|
- name: Download linuxdeployqt
|
|
run: |
|
|
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
|
|
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
|
|
|
|
- name: Download dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libxcb-cursor0
|
|
|
|
- name: Package artifacts with linuxdeployqt
|
|
run: |
|
|
mkdir -p appdir/usr/bin/
|
|
mv ./build/testtaker appdir/usr/bin/
|
|
export VERSION=0.0.1-linux # linuxdeployqt uses this for naming the package
|
|
echo "Version is: ${VERSION}"
|
|
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/usr/share/applications/*.desktop \
|
|
-appimage -verbose=2 -extra-plugins=iconengines
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: testtaker-linux-appimage
|
|
path: TestTaker*.AppImage
|