-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
155 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI - Linux Android Compilation | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install auto tools | ||
run: | | ||
sudo apt-get install automake | ||
- name: Download Android NDK and unzip | ||
run: | | ||
wget -q https://dl.google.com/android/repository/android-ndk-r27-linux.zip | ||
unzip -q android-ndk-r27-linux.zip | ||
- name: Set Up Build Environment, compile code for Android platform | ||
run: | | ||
echo "Set Up Build Environment" | ||
export ANDROID_NDK_HOME="$PWD/android-ndk-r27" | ||
export PATH="$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/" | ||
export CC=aarch64-linux-android34-clang | ||
export CXX=aarch64-linux-android34-clang++ | ||
export AS=llvm-as | ||
export LD=ld | ||
export RANLIB=llvm-ranlib | ||
export STRIP=llvm-strip | ||
echo "Compile the source code" | ||
chmod 777 gitcompile | ||
make -v | ||
./gitcompile --host=aarch64-linux-android | ||
- name: Verify the compiled binaries | ||
run: | | ||
echo "Verify the compiled binaries" | ||
Files=("src/.libs/libadsp_default_listener.so | ||
src/.libs/libadsprpc.so | ||
src/.libs/libcdsp_default_listener.so | ||
src/.libs/libcdsprpc.so | ||
src/.libs/libsdsp_default_listener.so | ||
src/.libs/libsdsprpc.so | ||
src/adsprpcd | ||
src/cdsprpcd | ||
src/sdsprpcd") | ||
for File in $Files | ||
do | ||
if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi | ||
done | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI - Linux GNU Compilation | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install auto tools | ||
run: | | ||
sudo apt-get install automake | ||
- name: Download Linaro tools and untar | ||
run: | | ||
wget -c https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz | ||
tar xf gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu.tar.xz | ||
- name: Set Up Build Environment and compile code for LE platform | ||
run: | | ||
# Set Up Build Environment | ||
export PATH="$PWD/gcc-linaro-7.5.0-2019.12-i686_aarch64-linux-gnu/bin/:$PATH" | ||
export CC=aarch64-linux-gnu-gcc | ||
export CXX=aarch64-linux-gnu-g++ | ||
export AS=aarch64-linux-gnu-as | ||
export LD=aarch64-linux-gnu-ld | ||
export RANLIB=aarch64-linux-gnu-ranlib | ||
export STRIP=aarch64-linux-gnu-strip | ||
|
||
# Compile the source code | ||
chmod 777 gitcompile | ||
./gitcompile --host=aarch64-linux-gnu | ||
|
||
- name: Verify the compiled binaries | ||
run: | | ||
echo "Verify the compiled binaries" | ||
Files=("src/.libs/libadsp_default_listener.so | ||
src/.libs/libadsprpc.so | ||
src/.libs/libcdsp_default_listener.so | ||
src/.libs/libcdsprpc.so | ||
src/.libs/libsdsp_default_listener.so | ||
src/.libs/libsdsprpc.so | ||
src/adsprpcd | ||
src/cdsprpcd | ||
src/sdsprpcd") | ||
for File in $Files | ||
do | ||
if [ -f $File ] ; then echo $File " - Exists" ; else echo $File " - Not Exists" && exit -1 ; fi | ||
done |
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