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 +}