Skip to content

Commit

Permalink
Add action
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kebekus committed Dec 1, 2023
1 parent 5c594e2 commit bb77493
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit bb77493

Please sign in to comment.