Skip to content

Commit

Permalink
Modify GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Apr 14, 2020
1 parent 1704915 commit 8c914f9
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 234 deletions.
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ install:
before_script:

script:
- ./build_script/ci/build.sh ${TRAVIS_BUILD_DIR} #> /dev/null
- ./build_script/ci/build_linux.sh ${TRAVIS_BUILD_DIR} #> /dev/null

after_script:

Expand All @@ -86,15 +86,15 @@ notifications:
on_success: never # [always|never|change]
on_failure: always

deploy:
provider: releases
api_key:
secure: "${GITHUB_TOKEN}"
file_glob: true
file:
- ${BUILD_TARGERT}*.tar.gz
skip_cleanup: true
on:
#condition: $TRAVIS_OS_NAME = android
# repo: KangLin/RabbitThirdLibrary
tags: true
#deploy:
# provider: releases
# api_key:
# secure: ${GITHUB_TOKEN}
# file_glob: true
# file:
# - ${BUILD_TARGERT}*.tar.gz
# skip_cleanup: true
# on:
# #condition: $TRAVIS_OS_NAME = android
# # repo: KangLin/RabbitThirdLibrary
# tags: true
84 changes: 42 additions & 42 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,47 +15,7 @@ environment:
# secure: ejAYGgB+3sBispRxUSr0xw==

matrix:
##### android ########
- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm64
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm64
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: x86
ANDROID_API: android-24

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: x86
ANDROID_API: android-24

##### msvc 2017 ########
- RABBIT_NUMBER: 0
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
Expand Down Expand Up @@ -133,6 +93,47 @@ environment:

#QT_ROOT: C:\Qt\5.12\mingw73_64

##### android ########
- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm64
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: arm64
ANDROID_API: android-24
ANDROID_ARM_NEON: ON

- RABBIT_NUMBER: 0
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: x86
ANDROID_API: android-24

- RABBIT_NUMBER: 1
BUILD_TARGERT: android
TOOLCHAIN_VERSION: 4.9
BUILD_ARCH: x86
ANDROID_API: android-24

matrix:
fast_finish: false

Expand Down Expand Up @@ -166,7 +167,6 @@ build_script:
- C:\msys64\usr\bin\bash.exe %APPVEYOR_BUILD_FOLDER%\build_script\ci\build_windows.sh

artifacts:
#- path: $(BUILD_TARGERT)
- path: $(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(APPVEYOR_REPO_TAG_NAME)
- path: $(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(ANDROID_API)_$(APPVEYOR_REPO_TAG_NAME)_in_windows

Expand All @@ -180,7 +180,7 @@ deploy:
#token : https://github.com/settings/tokens
#password encrypt: https://ci.appveyor.com/tools/encrypt
auth_token:
secure: I/iPgcw0IPuy66OiIjBSK33ZTrLDAlnnmfEpNo8q2DT6X3z1XJvYECnXGvef0C9y
secure: NPGYJzqYbViyGy0og49nCXxnj98vKqjxsgAd45rMhB9L1Vp1hCYp+Ku4C9qhe+vC
#artifact: RabbitThirdLibrary_$(BUILD_TARGERT)$(TOOLCHAIN_VERSION)_$(BUILD_ARCH)_$(QT_VERSION)_$(BUILD_VERSION)
#draft: true
#prerelease: true
Expand Down
8 changes: 4 additions & 4 deletions build_script/build_libfacedetection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ CUR_DIR=`pwd`
if [ ! -d ${RABBIT_BUILD_SOURCE_CODE} ]; then
VERSION=master
if [ "TRUE" = "${RABBIT_USE_REPOSITORIES}" ]; then
echo "git clone -q https://github.com/ShiqiYu/libfacedetection.git ${RABBIT_BUILD_SOURCE_CODE}"
git clone -q https://github.com/ShiqiYu/libfacedetection.git ${RABBIT_BUILD_SOURCE_CODE}
echo "git clone -q https://github.com/KangLin/libfacedetection.git ${RABBIT_BUILD_SOURCE_CODE}"
git clone -q https://github.com/KangLin/libfacedetection.git ${RABBIT_BUILD_SOURCE_CODE}
if [ "$VERSION" != "master" ]; then
git checkout -b v$VERSION v$VERSION
fi
else
echo "wget -q -c https://github.com/ShiqiYu/libfacedetection/archive/${VERSION}.zip"
echo "wget -q -c https://github.com/KangLin/libfacedetection/archive/${VERSION}.zip"
mkdir -p ${RABBIT_BUILD_SOURCE_CODE}
cd ${RABBIT_BUILD_SOURCE_CODE}
wget -q -c https://github.com/ShiqiYu/libfacedetection/archive/${VERSION}.zip
wget -q -c https://github.com/KangLin/libfacedetection/archive/${VERSION}.zip
unzip -q ${VERSION}.zip
mv libfacedetection-${VERSION} ..
rm -fr *
Expand Down
12 changes: 9 additions & 3 deletions build_script/build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CUR_DIR=`pwd`

#下载源码:
if [ ! -d ${RABBIT_BUILD_SOURCE_CODE} ]; then
OPENSLL_BRANCH=OpenSSL_1_1_1d
OPENSLL_BRANCH=OpenSSL_1_1_1f
if [ "TRUE" = "${RABBIT_USE_REPOSITORIES}" ]; then
echo "git clone -q --branch=${OPENSLL_BRANCH} https://github.com/openssl/openssl ${RABBIT_BUILD_SOURCE_CODE}"
git clone -q -b ${OPENSLL_BRANCH} https://github.com/openssl/openssl ${RABBIT_BUILD_SOURCE_CODE}
Expand Down Expand Up @@ -96,7 +96,7 @@ fi
if [ "$RABBIT_BUILD_STATIC" != "static" ]; then
MODE=shared
else
MODE="no-shared no-pic"
MODE="no-shared no-pic no-threads -static"
fi

echo "configure ..."
Expand Down Expand Up @@ -174,7 +174,13 @@ case ${BUILD_TARGERT} in
esac

echo "make install"
${MAKE}
${MAKE} V=1
${MAKE} install

if [ "${BUILD_ARCH}" = "android" ]; then
cd ${RABBIT_BUILD_PREFIX}/lib/
mv libssl.so.1.1 libssl.so
mv libcrypto.so.1.1 libcrypto.so
fi

cd $CUR_DIR
145 changes: 0 additions & 145 deletions build_script/ci/build.sh

This file was deleted.

Loading

0 comments on commit 8c914f9

Please sign in to comment.