[CI] Hotfix for JVM test on GH Action

This commit is contained in:
Hyunsu Cho 2023-10-23 20:02:33 -07:00
parent 87621322ed
commit ee8b29c843
No known key found for this signature in database
GPG Key ID: E3928C6ED5A562F4

View File

@ -51,14 +51,14 @@ jobs:
id: extract_branch id: extract_branch
if: | if: |
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
matrix.os == 'windows-latest' (matrix.os == 'windows-latest' || matrix.os == 'macos-11')
- name: Publish artifact xgboost4j.dll to S3 - name: Publish artifact xgboost4j.dll to S3
run: | run: |
cd lib/ cd lib/
Rename-Item -Path xgboost4j.dll -NewName xgboost4j_${{ github.sha }}.dll Rename-Item -Path xgboost4j.dll -NewName xgboost4j_${{ github.sha }}.dll
dir dir
python -m awscli s3 cp xgboost4j_${{ github.sha }}.dll s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j --acl public-read python -m awscli s3 cp xgboost4j_${{ github.sha }}.dll s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j/ --acl public-read
if: | if: |
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
matrix.os == 'windows-latest' matrix.os == 'windows-latest'
@ -71,7 +71,7 @@ jobs:
cd lib/ cd lib/
mv -v libxgboost4j.dylib libxgboost4j_${{ github.sha }}.dylib mv -v libxgboost4j.dylib libxgboost4j_${{ github.sha }}.dylib
ls ls
python -m awscli s3 cp libxgboost4j_${{ github.sha }}.dylib s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j --acl public-read python -m awscli s3 cp libxgboost4j_${{ github.sha }}.dylib s3://xgboost-nightly-builds/${{ steps.extract_branch.outputs.branch }}/libxgboost4j/ --acl public-read
if: | if: |
(github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')) &&
matrix.os == 'macos-11' matrix.os == 'macos-11'