This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 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
- Loading branch information
cspchen
committed
Aug 17, 2021
1 parent
240841c
commit 1ea18ed
Showing
3 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: continuous build | ||
|
||
on: [push, pull_request] | ||
on: [] | ||
|
||
jobs: | ||
macosx-x86_64: | ||
|