From 1ea18edce197b402cbfbaaaa54a94347501d92ab Mon Sep 17 00:00:00 2001 From: cspchen Date: Tue, 17 Aug 2021 15:46:13 +0800 Subject: [PATCH] # This is a combination of 18 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 --- .github/workflows/java_package_ci.yml | 62 ++++++++++++++++++++ .github/workflows/native_build_mxnet_osx.yml | 44 ++++++++++++++ .github/workflows/os_x_staticbuild.yml | 2 +- 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/java_package_ci.yml create mode 100644 .github/workflows/native_build_mxnet_osx.yml diff --git a/.github/workflows/java_package_ci.yml b/.github/workflows/java_package_ci.yml new file mode 100644 index 000000000000..501488f5e106 --- /dev/null +++ b/.github/workflows/java_package_ci.yml @@ -0,0 +1,62 @@ +name: Java Package CI + +on: + push: + paths: + - java-package/** + pull_request: + paths: + - java-package/** + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: '3.6' + architecture: x64 + - name: Install Dependencies + run: | + brew install nasm automake ninja libtool cmake pkgconfig protobuf hdf5 zlib ccache + ccache -M 1500M # Limit the ccache size; Github's overall cache limit is 5GB + shell: bash + - name: Build Mxnet Project + run: | + CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu + - name: Set Mxnet Library Environment + run: | + export MXNET_LIBRARY_PATH=build + echo $MXNET_LIBRARY_PATH + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1 + with: + working-directory: ./java-package + - name: Cache Gradle packages + uses: actions/cache@v2 + with: + working-directory: ./java-package + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Run Integration Test + working-directory: ./java-package + run: ./gradlew :integration:run + - name: Cleanup Gradle Cache + # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. + # Restoring these files from a GitHub Actions cache might cause problems for future builds. + working-directory: ./java-package + run: | + rm -f ~/.gradle/caches/modules-2/modules-2.lock + rm -f ~/.gradle/caches/modules-2/gc.properties \ No newline at end of file diff --git a/.github/workflows/native_build_mxnet_osx.yml b/.github/workflows/native_build_mxnet_osx.yml new file mode 100644 index 000000000000..aa85f3f04424 --- /dev/null +++ b/.github/workflows/native_build_mxnet_osx.yml @@ -0,0 +1,44 @@ +name: Native Build MXNet OSX + +on: [push] +#on: +# schedule: +# # Trigger the job at 5:30 everyday +# - cron: '30 5 * * *' + +jobs: + native_build_mxnet_osx: + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - 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: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1 + with: + working-directory: ./java-package + - name: jar mxnet library + with: + working-directory: ./java-package + run: | + ./gradlew :native:jar + ls native/build/libs diff --git a/.github/workflows/os_x_staticbuild.yml b/.github/workflows/os_x_staticbuild.yml index 1dd6e9c926d2..08395ea911e2 100644 --- a/.github/workflows/os_x_staticbuild.yml +++ b/.github/workflows/os_x_staticbuild.yml @@ -1,6 +1,6 @@ name: continuous build -on: [push, pull_request] +on: [] jobs: macosx-x86_64: