Merge branch 'main' of github.com:think-biq/Eddy into main #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy: (c) 2023 blurryroots innovation qanat OÜ | |
# Author: sven freiberg | |
name: Linux Release | |
on: | |
push: | |
branches: | |
- 'release/linux' | |
defaults: | |
run: | |
shell: bash | |
env: | |
SOURCE_DIR: ${{ github.workspace }} | |
QT_VERSION: 5.15.2 | |
QT_ARCH: gcc_64 | |
CMAKE_VERSION: '3.16.x' | |
PROJECT: Eddy | |
BUILD_TYPE: Debug | |
SHARED_LIBS: OFF | |
MODULE_LIBS: OFF | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Installing Qt (cached) | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ env.QT_VERSION }} | |
host: linux | |
target: desktop | |
arch: ${{ env.QT_ARCH }} | |
dir: ${{ runner.temp }} | |
modules: debug_info | |
setup-python: false | |
cache: true | |
cache-key-prefix: ${{ runner.os }}-qt-${{ env.QT_VERSION }} | |
- name: Installing cmake | |
uses: jwlawson/actions-setup-cmake@v1.13 | |
with: | |
cmake-version: ${{ env.CMAKE_VERSION }} | |
- name: Checking out source code | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Staging project | |
run: | | |
cmake -B ${{ env.SOURCE_DIR }}/Staging \ | |
-DQt5_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/${{ env.QT_ARCH }}/lib/cmake/Qt5" \ | |
-DBUILD_ID="${{ env.GITHUB_SHA }}" \ | |
-DBUILD_MODULES=${{ env.MODULE_LIBS }} \ | |
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \ | |
-DBUILD_SHARED_LIBS=${{ env.SHARED_LIBS }} \ | |
${{ env.SOURCE_DIR }} | |
- name: Building project | |
working-directory: ${{ env.SOURCE_DIR }} | |
run: | | |
cmake --build ${{ env.SOURCE_DIR }}/Staging | |
- name: Prepare release candidate | |
working-directory: ${{ env.SOURCE_DIR }} | |
run: | | |
cmake --build ${{ env.SOURCE_DIR }}/Staging --target ${{ env.PROJECT }}_Compile_Release_Candidate | |
- name: Uploading release candidate | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ${{ env.PROJECT }}_${{ env.BUILD_TYPE }}.AppImage | |
path: ${{ env.SOURCE_DIR }}/Release/Candidate/${{ env.PROJECT }}.AppImage |