From 24bfc3484f36f123483e1678a52992cb1456fc8b Mon Sep 17 00:00:00 2001 From: cspchen Date: Tue, 17 Aug 2021 15:47:58 +0800 Subject: [PATCH] # This is a combination of 27 commits. parent 1ea18edce197b402cbfbaaaa54a94347501d92ab author cspchen 1629186478 +0800 committer cspchen 1629186485 +0800 # This is a combination of 21 commits. # This is the 1st commit message: FIX: loading on Linux platform # This is the commit message #2: UPDATE: ci for java-package # This is the commit message #3: UPDATE: ci for java-package # This is the commit message #4: UPDATE: ci for java-package # This is the commit message #5: UPDATE: ci for java-package # This is the commit message #6: UPDATE: ci for java-package # This is the commit message #7: UPDATE: ci for java-package # This is the commit message #8: UPDATE: ci for java-package # This is the commit message #9: UPDATE: ci for java-package # This is the commit message #10: UPDATE: ci for java-package # This is the commit message #11: UPDATE: ci for java-package # This is the commit message #12: UPDATE: ci for java-package # This is the commit message #13: UPDATE: ci for java-package # This is the commit message #14: UPDATE: ci for java-package # This is the commit message #15: UPDATE: ci for java-package # This is the commit message #16: UPDATE: ci for java-package # This is the commit message #17: UPDATE: ci for java-package # This is the commit message #18: UPDATE: ci for java-package # This is the commit message #19: UPDATE: ci for java-package # This is the commit message #20: UPDATE: ci for java-package # This is the commit message #21: UPDATE: ci for java-package # This is the commit message #22: UPDATE: ci for java-package # This is the commit message #23: UPDATE: jenkins ci scripts for java-package # This is the commit message #24: UPDATE: jenkins ci scripts for java-package # This is the commit message #25: UPDATE: jenkins ci scripts for java-package # This is the commit message #26: UPDATE: jenkins ci scripts for java-package # This is the commit message #27: UPDATE: jenkins ci scripts for java-package --- .github/workflows/native_build_mxnet_osx.yml | 23 ++++------ ci/docker_attach.sh | 44 ++++++++++++++++++++ docker/dev/docker_run.sh | 44 ++++++++++++++++++++ java-package/scripts/setup_gradle_ubuntu.sh | 5 +++ 4 files changed, 102 insertions(+), 14 deletions(-) create mode 100644 ci/docker_attach.sh create mode 100644 docker/dev/docker_run.sh create mode 100644 java-package/scripts/setup_gradle_ubuntu.sh diff --git a/.github/workflows/native_build_mxnet_osx.yml b/.github/workflows/native_build_mxnet_osx.yml index aa85f3f04424..32695bbf4e21 100644 --- a/.github/workflows/native_build_mxnet_osx.yml +++ b/.github/workflows/native_build_mxnet_osx.yml @@ -1,4 +1,4 @@ -name: Native Build MXNet OSX +name: Native Build MXNet OSX and Upload jar on: [push] #on: @@ -16,17 +16,12 @@ jobs: - name: Install Dependencies run: | brew install nasm automake ninja libtool - - name: Build - run: | - git --version - clang --version - CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu - - name: Upload libmxnet.dylib - uses: actions/upload-artifact@v2 - with: - name: libmxnet.dylib - path: build/libmxnet.dylib +# - name: Build +# run: | +# git --version +# clang --version +# CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu - name: Set up JDK 8 uses: actions/setup-java@v2 with: @@ -37,8 +32,8 @@ jobs: with: working-directory: ./java-package - name: jar mxnet library - with: - working-directory: ./java-package + working-directory: ./java-package run: | + pwd ./gradlew :native:jar - ls native/build/libs +# ls native/build/libs diff --git a/ci/docker_attach.sh b/ci/docker_attach.sh new file mode 100644 index 000000000000..497f8ef6876e --- /dev/null +++ b/ci/docker_attach.sh @@ -0,0 +1,44 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +docker \ + run \ + -it \ + --cap-add \ + SYS_PTRACE \ + --rm \ + --shm-size=500m \ + -v \ + /home/ec2-user/work/incubator-mxnet:/work/mxnet \ + -v \ + /home/ec2-user/work/incubator-mxnet/build:/work/build \ + -v \ + /root/.ccache:/work/ccache \ + -u \ + 0:0 \ + -e \ + CCACHE_MAXSIZE=500G \ + -e \ + CCACHE_TEMPDIR=/tmp/ccache \ + -e \ + CCACHE_DIR=/work/ccache \ + -e \ + CCACHE_LOGFILE=/tmp/ccache.log \ + -e \ + RELEASE_BUILD=false \ + mxnetci/build.ubuntu_cpu:latest \ + bash \ No newline at end of file diff --git a/docker/dev/docker_run.sh b/docker/dev/docker_run.sh new file mode 100644 index 000000000000..80f36b559426 --- /dev/null +++ b/docker/dev/docker_run.sh @@ -0,0 +1,44 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +docker \ + run \ + --cap-add \ + SYS_PTRACE \ + --rm \ + --shm-size=500m \ + -v \ + /home/ec2-user/work/upstream/incubator-mxnet:/work/mxnet \ + -v \ + /home/ec2-user/work/upstream/incubator-mxnet/build:/work/build \ + -v \ + /root/.ccache:/work/ccache \ + -u \ + 0:0 \ + -e \ + CCACHE_MAXSIZE=500G \ + -e \ + CCACHE_TEMPDIR=/tmp/ccache \ + -e \ + CCACHE_DIR=/work/ccache \ + -e \ + CCACHE_LOGFILE=/tmp/ccache.log \ + -e \ + RELEASE_BUILD=false \ + mxnetci/build.ubuntu_cpu:latest \ + /work/mxnet/ci/docker/runtime_functions.sh \ + build_ubuntu_cpu \ No newline at end of file diff --git a/java-package/scripts/setup_gradle_ubuntu.sh b/java-package/scripts/setup_gradle_ubuntu.sh new file mode 100644 index 000000000000..8a404829c0aa --- /dev/null +++ b/java-package/scripts/setup_gradle_ubuntu.sh @@ -0,0 +1,5 @@ +install_gradle() { + add-apt-repository ppa:cwchien/gradle + apt-get update -y + apt-get install gradle -y +}