From bb77493adb6ae035f9421586644f1ce8c0f80623 Mon Sep 17 00:00:00 2001 From: Stefan Kebekus Date: Fri, 1 Dec 2023 07:52:04 +0100 Subject: [PATCH] Add action --- .github/workflows/linux.yml | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..22fd332 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,48 @@ +name: Compile on Linux + +on: + push: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: true + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + cache: 'true' + version: '6.*.*' + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: linux + - name: Compile + run: | + $Qt6_DIR/bin/qt-cmake \ + -S maplibre-native-qt \ + -B build \ + -G Ninja \ + -DMLN_QT_WITH_INTERNAL_ICU=ON \ + -DBUILD_TESTING=OFF \ + -DCMAKE_C_COMPILER_LAUNCHER="ccache" \ + -DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \ + -DCMAKE_INSTALL_PREFIX=gcc_64 + - name: Compile and Install + run: | + cmake --build build + cmake --build build --target install + - name: Package + run: | + tar cvfz enrouteDependencies_linux.tar.gz gcc_64 + - name: Upload to developerBuilds + run: | + gh release upload --clobber developerBuilds *.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file