mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Add buiding of volk_gnsssdr on Android
This commit is contained in:
parent
d3119a2153
commit
75c71e53ee
64
.github/workflows/volk_android.yml
vendored
64
.github/workflows/volk_android.yml
vendored
@ -3,38 +3,54 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- CITATION.cff
|
- src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- CITATION.cff
|
- src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: CITATION.cff
|
name: Build on Android NDK
|
||||||
jobs:
|
jobs:
|
||||||
Validate-CITATION-cff:
|
build:
|
||||||
|
name: Build on Android NDK ${{ matrix.arch.name }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
arch:
|
||||||
|
- { name: armeabi-v7a, allow_fail: false }
|
||||||
|
- { name: arm64-v8a, allow_fail: false }
|
||||||
|
- { name: x86, allow_fail: false }
|
||||||
|
- { name: x86_64, allow_fail: false }
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Validate CITATION.cff
|
|
||||||
env:
|
|
||||||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v3.0.0
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
# This is needed for workflows running on
|
- name: Update repositories
|
||||||
# ubuntu-20.04 or later
|
run: sudo apt update
|
||||||
- name: Install V8
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y libv8-dev
|
|
||||||
- name: Validate CITATION.cff
|
|
||||||
uses: dieghernan/cff-validator@main
|
|
||||||
|
|
||||||
# Upload artifact
|
# All dependencies
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Install dependencies
|
||||||
if: failure()
|
run: sudo apt install -y cmake openjdk-11-jre-headless wget unzip make python3-mako
|
||||||
with:
|
|
||||||
name: citation-cff-errors
|
# Setup Android SDK, and auto-accept licenses
|
||||||
path: citation_cff_errors.md
|
- name: Install Android SDK
|
||||||
|
run: wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip && mkdir android-sdk-linux && unzip -qq android-sdk.zip -d android-sdk-linux && export ANDROID_HOME=./android-sdk-linux && echo y | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --update && (echo y; echo y; echo y; echo y; echo y; echo y; echo y; echo y) | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --licenses
|
||||||
|
|
||||||
|
# Call SDKManager to install the Android NDK
|
||||||
|
- name: Install Android NDK
|
||||||
|
run: $GITHUB_WORKSPACE/android-sdk-linux/cmdline-tools/bin/sdkmanager --sdk_root=$GITHUB_WORKSPACE/android-sdk-linux --install "ndk;24.0.8215888" --channel=3
|
||||||
|
|
||||||
|
# Setup build directory
|
||||||
|
- name: Setup ${{ matrix.arch.name }}
|
||||||
|
shell: bash
|
||||||
|
run: cd $GITHUB_WORKSPACE/ && mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/android-sdk-linux/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{ matrix.arch.name }} -DANDROID_PLATFORM=android-23 ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
|
||||||
|
|
||||||
|
# Build
|
||||||
|
- name: Build ${{ matrix.arch.name }}
|
||||||
|
shell: bash
|
||||||
|
run: cd $GITHUB_WORKSPACE/build && make
|
||||||
|
continue-on-error: ${{ matrix.arch.allow_fail }}
|
||||||
|
Loading…
Reference in New Issue
Block a user