master
agibsonccc 2021-03-10 18:16:40 +09:00
parent 9a358d3e69
commit 8d2a24c060
2 changed files with 7 additions and 3 deletions

View File

@ -32,12 +32,12 @@ jobs:
- name: Build on linux-x86_64
env:
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }}
LIBND4J_HOME: "${GITHUB_WORKSPACE}/libnd4j"
LIBND4J_HOME: ${GITHUB_WORKSPACE}/libnd4j
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_USER1_PASS }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.PACKAGES_GPG_PASS }}
OPENBLAS_PATH: "$HOME/.javacpp/cache/openblas-0.3.13-1.5.5-android-x86_64.jar/lib/"
OPENBLAS_PATH: ${HOME}/.javacpp/cache/openblas-0.3.13-1.5.5-android-x86_64.jar/lib/
DEPLOY_TO: ossrh
run: |
echo "Verifying programs on path. Path is $PATH"
@ -46,6 +46,8 @@ jobs:
cmake --version
protoc --version
clang --version
export LIBND4J_HOME=${GITHUB_WORKSPACE}/libnd4j
export OPENBLAS_PATH=${HOME}/.javacpp/cache/openblas-0.3.13-1.5.5-android-x86_64.jar/lib/
mvn -X -Dorg.bytedeco.javacpp.logger.debug=true -Possrh -pl ":nd4j-native,:libnd4j" --also-make \
-Djavacpp.platform=android-x86_64 \
-Dlibnd4j.platform=android-x86_64 -Dlibnd4j.chip=cpu \

View File

@ -37,8 +37,10 @@ jobs:
shell: /bin/sh
run: |
echo "Running install on architecture ${{ matrix.arch }}"
apt-get -yq update && apt-get install -y build-essential unzip libssl-dev
apt-get -yq update && apt-get install -y build-essential unzip libssl-dev curl
echo "After install on architecture ${{ matrix.arch }}"
mkdir -p "/opt/maven"
curl -fsSL http://apache.osuosl.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz | tar -xzC "/opt/maven" --strip-components=1
export PATH="/opt/maven/bin:$PATH"
echo "RUNNING ARCH ${{ matrix.arch }}"
case "${{ matrix.arch }}" in