Skip to content

Commit

Permalink
Merge pull request #8 from skadge/github-actions
Browse files Browse the repository at this point in the history
add github action to automatically compile FlatFab on eg every PR
  • Loading branch information
JamesMcCrae authored Dec 3, 2024
2 parents cc5a2df + 29e10cf commit aa25f2a
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/linux_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Linux Release

on:
push:
branches:
- 'master'
- 'continuous-integration'
- 'cross-platform'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'continuous-integration'

defaults:
run:
shell: bash

env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: FlatFab.AppImage

jobs:
build:
runs-on: ubuntu-24.04
#runs-on: self-hosted

steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ env.QT_VERSION }}
modules: qtwebengine
setup-python: false

- name: Install other dependencies
run: /usr/bin/sudo apt-get install libglu1-mesa-dev libeigen3-dev

- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/build

- name: Build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
qmake -r ${{ env.SOURCE_DIR }}/FlatFab.pro
make
# TODO:
#- name: AppImage
# working-directory: ${{ env.SOURCE_DIR }}/build
# run: |
# wget -O deploy.AppImage https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
# chmod +x deploy.AppImage
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/Qt/5.15.2/gcc_64/lib/
# cp ${{ env.SOURCE_DIR }}/linux/* .
# ./deploy.AppImage FlatFab.desktop -appimage -no-translations -extra-plugins=renderers
# mv FlatFab*.AppImage ${{ env.ARTIFACT }}
#
#- name: Linux artefact
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.ARTIFACT }}
# path: ${{ env.SOURCE_DIR }}/build/${{ env.ARTIFACT }}

0 comments on commit aa25f2a

Please sign in to comment.