A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/2da63dc284aca2a90e4d9a21080cc8bcdd27968e below:

[build] Add Android build action to GitHub CI (#2149) · Haivision/srt@2da63dc · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+30

-12

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+30

-12

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1,26 @@

1 +

name: Android

2 + 3 +

on:

4 +

push:

5 +

branches: [ master ]

6 +

pull_request:

7 +

branches: [ master ]

8 + 9 +

jobs:

10 +

build:

11 +

name: NDK-R23

12 +

runs-on: ubuntu-18.04

13 + 14 +

steps:

15 +

- name: Setup Android NDK R23

16 +

uses: nttld/setup-ndk@v1

17 +

id: setup-ndk

18 +

with:

19 +

ndk-version: r23

20 +

add-to-path: false

21 +

- uses: actions/checkout@v2

22 +

- name: build

23 +

run: |

24 +

cd ./scripts/build-android/

25 +

echo ${{ steps.setup-ndk.outputs.ndk-path }}

26 +

source ./build-android -n ${{ steps.setup-ndk.outputs.ndk-path }}

Original file line number Diff line number Diff line change

@@ -10,7 +10,6 @@ echo_help()

10 10

echo " -e Encryption library to be used. Possible options: openssl (default) mbedtls"

11 11

echo " -o OpenSSL version. E.g. 1.1.1l"

12 12

echo " -m Mbed TLS version. E.g. v2.26.0"

13 -

echo " -s SRT version. E.g. v1.4.4"

14 13

echo

15 14

echo "Example: ./build-android -n /home/username/Android/Sdk/ndk/23.0.7599858 -a 28 -t \"arm64-v8a x86_64\""

16 15

echo

@@ -21,7 +20,6 @@ NDK_ROOT=""

21 20

API_LEVEL=28

22 21

BUILD_TARGETS="armeabi-v7a arm64-v8a x86 x86_64"

23 22

OPENSSL_VERSION=1.1.1l

24 -

SRT_VERSION=""

25 23

ENC_LIB=openssl

26 24

MBEDTLS_VERSION=v2.26.0

27 25

@@ -56,10 +54,8 @@ SCRIPT_DIR=$(pwd)

56 54

HOST_TAG='unknown'

57 55

unamestr=$(uname -s)

58 56

if [ "$unamestr" = 'Linux' ]; then

59 -

SCRIPT_DIR=$(readlink -f $0 | xargs dirname)

60 57

HOST_TAG='linux-x86_64'

61 58

elif [ "$unamestr" = 'Darwin' ]; then

62 -

SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)

63 59

if [ $(uname -p) = 'arm' ]; then

64 60

echo "NDK does not currently support ARM64"

65 61

exit 128

@@ -93,12 +89,8 @@ else

93 89

exit 128

94 90

fi

95 91 96 -

if [ ! -d $BASE_DIR/srt ]; then

97 -

git clone https://github.com/Haivision/srt srt

98 -

if [ ! -z "$SRT_VERSION" ]; then

99 -

git -C $BASE_DIR/srt checkout $SRT_VERSION

100 -

fi

101 -

fi

92 +

# Build working copy of srt repository

93 +

REPO_DIR="../.."

102 94 103 95

for build_target in $BUILD_TARGETS; do

104 96

LIB_DIR=$BASE_DIR/$build_target/lib

@@ -113,7 +105,7 @@ for build_target in $BUILD_TARGETS; do

113 105

cp $LIB_DIR/libmbedx509.so $JNI_DIR/libmbedx509.so

114 106

fi

115 107 116 -

git -C $BASE_DIR/srt clean -fd

117 -

$SCRIPT_DIR/mksrt -n $NDK_ROOT -a $API_LEVEL -t $build_target -e $ENC_LIB -s $BASE_DIR/srt -i $BASE_DIR/$build_target

108 +

git -C $REPO_DIR clean -fd -e scripts

109 +

$SCRIPT_DIR/mksrt -n $NDK_ROOT -a $API_LEVEL -t $build_target -e $ENC_LIB -s $REPO_DIR -i $BASE_DIR/$build_target

118 110

cp $LIB_DIR/libsrt.so $JNI_DIR/libsrt.so

119 111

done

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4