Set up Android cross compiling correctly #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
name: Build Android | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Ninja | |
run: | | |
sudo apt-get update | |
sudo apt-get install ninja-build | |
- uses: vicr123/libcontemporary/prepare-vars@actions | |
id: vars | |
- name: Install Host Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ steps.vars.outputs.qtVersion }} | |
cache: true | |
- name: "Set Qt path" | |
shell: bash | |
run: | | |
echo "QT_HOST_PATH=$Qt6_DIR" >> $GITHUB_ENV | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ steps.vars.outputs.qtVersion }} | |
cache: true | |
target: android | |
arch: 'android_arm64_v8a' | |
- name: Configure CMake toolchain | |
run: | | |
echo "CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake" >> $GITHUB_ENV | |
echo "ANDROID_PLATFORM=android-23" >> $GITHUB_ENV | |
echo "ANDROID_ABI=arm64-v8a" >> $GITHUB_ENV | |
echo "LCNTP_TARGET_PLATFORM=android" >> $GITHUB_ENV | |
- name: Configure and install libcontemporary | |
uses: theCheeseboard/libcontemporary/install-libcontemporary@actions | |
with: | |
qcoroVersion: ${{ steps.vars.outputs.qcoroVersion }} | |
- uses: actions/checkout@v4 | |
- uses: vicr123/libcontemporary/build-project@actions | |
name: "Build contemporary-theme" | |
with: | |
project: "vicr123/contemporary-theme" | |
commitish: "blueprint" | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
- uses: vicr123/libcontemporary/build-project@actions | |
name: "Build project" | |
with: | |
project: "." |