Skip to content

Commit 89530c8

Browse files
committed
[CI] Build libxgboost4j.dylib for Intel Mac (dmlc#9704)
1 parent 946ab53 commit 89530c8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/jvm_tests.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,34 @@ jobs:
5151
id: extract_branch
5252
if: |
5353
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
54-
matrix.os == 'windows-latest'
54+
(matrix.os == 'windows-latest' || matrix.os == 'macos-11')
5555
5656
- name: Publish artifact xgboost4j.dll to S3
5757
run: |
5858
cd lib/
5959
Rename-Item -Path xgboost4j.dll -NewName xgboost4j_${{ github.sha }}.dll
6060
dir
61-
python -m awscli s3 cp xgboost4j_${{ github.sha }}.dll s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/ --acl public-read
61+
python -m awscli s3 cp xgboost4j_${{ github.sha }}.dll s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j/ --acl public-read
6262
if: |
6363
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
6464
matrix.os == 'windows-latest'
6565
env:
6666
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
6767
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
6868

69+
- name: Publish artifact libxgboost4j.dylib to S3
70+
run: |
71+
cd lib/
72+
mv -v libxgboost4j.dylib libxgboost4j_${{ github.sha }}.dylib
73+
ls
74+
python -m awscli s3 cp libxgboost4j_${{ github.sha }}.dylib s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j/ --acl public-read
75+
if: |
76+
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
77+
matrix.os == 'macos-11'
78+
env:
79+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
80+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
81+
6982

7083
- name: Test XGBoost4J (Core, Spark, Examples)
7184
run: |

0 commit comments

Comments
 (0)