Skip to content

Build Silaty

Build Silaty #165

Workflow file for this run

name: Build Silaty
on:
workflow_dispatch
env:
SOURCE_DIR: ${{ github.workspace }}
jobs:
# windows ----------------------------------------------------------------
silatywindows:
name: Windows
runs-on: windows-latest
steps:
- name: Check Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/[email protected]
with:
arch: win64_mingw
version: 6.5.3
host: windows
target: desktop
tools: 'tools_ifw tools_qtcreator,qt.tools.qtcreator'
dir: '${{github.workspace}}/qt/'
modules: 'qtmultimedia'
aqtversion: '==3.1.6'
- name: Compile Silaty
run: qmake -config release && make -j1
- name: Package Silaty
working-directory: ${{ env.SOURCE_DIR }}
run: |
choco install wget --no-progress
C:\msys64\usr\bin\wget.exe -O cqtd.exe https://github.com/QuasarApp/CQtDeployer/releases/download/v1.6.2285/CQtDeployer_1.6.2285.1507045_Windows_AMD64.exe
./cqtd.exe install --accept-messages --root D:\a\SilatyQt\SilatyQt\qt\Qt\ --confirm-command
cd release
../qt/Qt/1.6/CQtDeployer.exe -bin Silaty.exe -qmake ../qt/Qt/6.5.3/mingw_64/bin/qmake.exe qif -extraPlugin ../qt/Qt/6.5.3/mingw_64/plugins/multimedia -extraData ../winBin/* -icon ../images/Icons/silaty.ico -deployVersion 1.6
- name: Release Silaty
uses: actions/upload-artifact@v3
with:
name: "windows"
path: ./release/DistributionKit/InstallerSilaty.exe
# linux ----------------------------------------------------------------
silatylinux:
name: Linux
runs-on: ubuntu-22.04
steps:
- name: Check Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/[email protected]
with:
version: 6.5.3
host: linux
target: desktop
dir: '${{github.workspace}}/qt/'
modules: 'qtmultimedia'
aqtversion: '==3.1.6'
- name: Compile Silaty
run: qmake -config release && make -j1
- name: Package Silaty
working-directory: ${{ env.SOURCE_DIR }}
run: |
wget -O cqtd.deb https://github.com/QuasarApp/CQtDeployer/releases/download/v1.6.2285/CQtDeployer_1.6.2285.1507045_Linux_x86_64.deb
sudo apt install ./cqtd.deb
cqtdeployer -bin Silaty qif -extraPlugin ./qt/Qt/6.5.3/gcc_64/plugins/multimedia -icon ./images/Icons/silaty.png -deployVersion 1.6
- name: Release Silaty
uses: actions/upload-artifact@v3
with:
name: "linux"
path: ./DistributionKit/InstallerSilaty.run
# linux-appimage -------------------------------------------------------
silatylinux-appimage:
name: Linux (AppImage)
runs-on: ubuntu-20.04
steps:
- name: Check Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/[email protected]
with:
version: 6.5.3
host: linux
target: desktop
dir: '${{github.workspace}}/qt/'
modules: 'qtmultimedia'
aqtversion: '==3.1.6'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev libxcb-image0-dev libxcb-util0-dev libxcb-cursor-dev
- name: Compile Silaty
run: |
qmake -config release && make -j1
- name: Install LinuxDeploy
run: |
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
chmod +x linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- name: Package Silaty
run: |
export QMAKE=qmake
export PATH=./qt/Qt/6.5.3/gcc_64/libexec:$PATH
./linuxdeploy-x86_64.AppImage --appdir AppDir -e Silaty -i ./images/Icons/silaty.png -d ./silaty.desktop --plugin qt --output appimage
rm linuxdeploy-x86_64.AppImage
rm linuxdeploy-plugin-qt-x86_64.AppImage
- name: Release Silaty
uses: actions/upload-artifact@v3
with:
name: "linux (appimage)"
path: Silaty-x86_64.AppImage
# macos ----------------------------------------------------------------
silatymacos:
name: macOS
runs-on: macos-latest
steps:
- name: Check Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.8.0
host: mac
target: desktop
dir: '${{github.workspace}}/qt/'
modules: 'qtmultimedia'
aqtversion: '==3.1.18'
- name: Compile Silaty
run: qmake -config release && make -j1
- name: Package Silaty
working-directory: ${{ env.SOURCE_DIR }}
run: |
mkdir release
mv Silaty.app ./release
cd release
../qt/Qt/6.8.0/macos/bin/macdeployqt ./Silaty.app -dmg -verbose=1
- name: Release Silaty
uses: actions/upload-artifact@v3
with:
name: "macos"
path: ./release/Silaty.dmg