Try to fix compilation #658
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
name: Compile on Linux | |
on: | |
push: | |
branches: [ develop ] | |
paths-ignore: | |
- ".gitignore" | |
- "README.md" | |
# ignore CI for other platforms | |
- ".github/workflows/android.yml" | |
- ".github/workflows/api.yml" | |
- ".github/workflows/ios.yml" | |
- ".github/workflows/macos.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Enroute | |
uses: actions/checkout@v4 | |
with: | |
path: enroute | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Checkout Enroute Dependencies | |
uses: actions/checkout@v4 | |
with: | |
path: enrouteDependencies | |
repository: Akaflieg-Freiburg/enrouteDependencies | |
submodules: recursive | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
aqtversion: ==3.1.* | |
cache: 'true' | |
modules: 'qt5compat qtconnectivity qthttpserver qtimageformats qtlocation qtmultimedia qtpositioning qtserialport qtshadertools qtspeech qtwebsockets qtwebview' | |
version: '6.8.0' | |
- name: Install LinuxDeploy | |
uses: miurahr/install-linuxdeploy-action@v1 | |
with: | |
plugins: appimage | |
- name: Install Additional Software | |
run: | | |
sudo apt install appstream extra-cmake-modules fuse libxcb-cursor0 libzip-dev ninja-build spirv-tools zipcmp zipmerge ziptool | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: linux | |
- name: Compile and Install maplibre-native-qt | |
run: | | |
$QT_ROOT_DIR/bin/qt-cmake \ | |
-S enrouteDependencies/maplibre-native-qt \ | |
-B build-maplibre-native-qt \ | |
-G Ninja \ | |
-DMLN_QT_WITH_INTERNAL_ICU=ON \ | |
-DBUILD_TESTING=OFF \ | |
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \ | |
-DCMAKE_PREFIX_PATH=$QT_ROOT_DIR \ | |
-DCMAKE_INSTALL_PREFIX=$QT_ROOT_DIR | |
cmake --build build-maplibre-native-qt | |
cmake --install build-maplibre-native-qt | |
- name: Compile Enroute Flight Navigation | |
run: | | |
cmake \ | |
-B build-enroute \ | |
-S enroute \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \ | |
-DCMAKE_INSTALL_PREFIX:STRING=$PWD/app/usr \ | |
-DQTDEPLOY=ON | |
cmake --build build-enroute | |
cmake --build build-enroute --target install | |
- name: Package | |
run: | | |
linuxdeploy-x86_64.AppImage --appdir app --output appimage | |
mv *-x86_64.AppImage enroute-Linux.AppImage | |
- name: Upload to developerBuilds | |
run: | | |
gh release upload --clobber developerBuilds ../enroute-Linux.AppImage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: enroute |