Skip to content

added echo class

added echo class #42

Workflow file for this run

name: Android
on:
push:
branches: [ "master" ]
workflow_dispatch:
env:
BUILD_TYPE: Release
concurrency:
group: "build_android"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
- name: Install Android NDK
run: |
mkdir -p $HOME/Android/Sdk/ndk
cd $HOME/Android/Sdk/ndk
curl -L https://dl.google.com/android/repository/android-ndk-r27b-linux.zip -o android-ndk.zip
unzip android-ndk.zip
rm android-ndk.zip
- name: Configure CMake
run: >
cmake -B ${{github.workspace}}/build
-DCMAKE_TOOLCHAIN_FILE=$HOME/Android/Sdk/ndk/android-ndk-r27b/build/cmake/android.toolchain.cmake
-DANDROID_ABI=arm64-v8a
-DANDROID_PLATFORM=android-30
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DENABLE_SHARED=On
-DCMAKE_CXX_FLAGS='-w'
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
- name: Cleanup
run: sudo rm -rf build