Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 1ea18ed

Browse files
author
cspchen
committed
# 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
1 parent 240841c commit 1ea18ed

File tree

3 files changed

+107
-1
lines changed

3 files changed

+107
-1
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Java Package CI
2+
3+
on:
4+
push:
5+
paths:
6+
- java-package/**
7+
pull_request:
8+
paths:
9+
- java-package/**
10+
11+
jobs:
12+
build:
13+
runs-on: macos-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
- name: Setup python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.6'
21+
architecture: x64
22+
- name: Install Dependencies
23+
run: |
24+
brew install nasm automake ninja libtool cmake pkgconfig protobuf hdf5 zlib ccache
25+
ccache -M 1500M # Limit the ccache size; Github's overall cache limit is 5GB
26+
shell: bash
27+
- name: Build Mxnet Project
28+
run: |
29+
CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu
30+
- name: Set Mxnet Library Environment
31+
run: |
32+
export MXNET_LIBRARY_PATH=build
33+
echo $MXNET_LIBRARY_PATH
34+
- name: Set up JDK 8
35+
uses: actions/setup-java@v2
36+
with:
37+
java-version: '8'
38+
distribution: 'adopt'
39+
- name: Validate Gradle wrapper
40+
uses: gradle/wrapper-validation-action@v1
41+
with:
42+
working-directory: ./java-package
43+
- name: Cache Gradle packages
44+
uses: actions/cache@v2
45+
with:
46+
working-directory: ./java-package
47+
path: |
48+
~/.gradle/caches
49+
~/.gradle/wrapper
50+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
51+
restore-keys: |
52+
${{ runner.os }}-gradle-
53+
- name: Run Integration Test
54+
working-directory: ./java-package
55+
run: ./gradlew :integration:run
56+
- name: Cleanup Gradle Cache
57+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
58+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
59+
working-directory: ./java-package
60+
run: |
61+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
62+
rm -f ~/.gradle/caches/modules-2/gc.properties
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Native Build MXNet OSX
2+
3+
on: [push]
4+
#on:
5+
# schedule:
6+
# # Trigger the job at 5:30 everyday
7+
# - cron: '30 5 * * *'
8+
9+
jobs:
10+
native_build_mxnet_osx:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
- name: Install Dependencies
17+
run: |
18+
brew install nasm automake ninja libtool
19+
- name: Build
20+
run: |
21+
git --version
22+
clang --version
23+
CMAKE_STATICBUILD=1 ./tools/staticbuild/build.sh cpu
24+
- name: Upload libmxnet.dylib
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: libmxnet.dylib
28+
path: build/libmxnet.dylib
29+
30+
- name: Set up JDK 8
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: '8'
34+
distribution: 'adopt'
35+
- name: Validate Gradle wrapper
36+
uses: gradle/wrapper-validation-action@v1
37+
with:
38+
working-directory: ./java-package
39+
- name: jar mxnet library
40+
with:
41+
working-directory: ./java-package
42+
run: |
43+
./gradlew :native:jar
44+
ls native/build/libs

.github/workflows/os_x_staticbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: continuous build
22

3-
on: [push, pull_request]
3+
on: []
44

55
jobs:
66
macosx-x86_64:

0 commit comments

Comments
 (0)