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: