File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -51,21 +51,34 @@ jobs:
51
51
id : extract_branch
52
52
if : |
53
53
(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')
55
55
56
56
- name : Publish artifact xgboost4j.dll to S3
57
57
run : |
58
58
cd lib/
59
59
Rename-Item -Path xgboost4j.dll -NewName xgboost4j_${{ github.sha }}.dll
60
60
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
62
62
if : |
63
63
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
64
64
matrix.os == 'windows-latest'
65
65
env :
66
66
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
67
67
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
68
68
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
+
69
82
70
83
- name : Test XGBoost4J (Core, Spark, Examples)
71
84
run : |
You can’t perform that action at this time.
0 commit comments