mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[CI] Fix Windows Bazel Upload (#13436)
This commit is contained in:
parent
0ec9ddabc1
commit
7a0597d03f
2 changed files with 14 additions and 17 deletions
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
@ -78,33 +78,29 @@ jobs:
|
||||||
pip-${{ runner.os }}-
|
pip-${{ runner.os }}-
|
||||||
pip-
|
pip-
|
||||||
- name: Run CI script
|
- name: Run CI script
|
||||||
shell: bash -e -o pipefail -l {0}
|
shell: bash -x -e -o pipefail -l {0}
|
||||||
env:
|
env:
|
||||||
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
|
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
#LINUX_WHEELS: 1
|
|
||||||
#MAC_WHEELS: 1
|
|
||||||
RAY_DEFAULT_BUILD: 1
|
RAY_DEFAULT_BUILD: 1
|
||||||
WINDOWS_WHEELS: 1
|
WINDOWS_WHEELS: 1
|
||||||
run: |
|
|
||||||
python -u ci/remote-watch.py --skip_repo=ray-project/ray &
|
|
||||||
. ./ci/travis/ci.sh init
|
|
||||||
. ./ci/travis/ci.sh build
|
|
||||||
. ./ci/travis/ci.sh upload_wheels || true
|
|
||||||
. ./ci/travis/ci.sh test_python
|
|
||||||
. ./ci/travis/ci.sh test_core
|
|
||||||
. ./ci/travis/ci.sh test_wheels
|
|
||||||
- name: Upload test result
|
|
||||||
if: github.repository == 'ray-project/ray' && github.event_name != 'pull_request'
|
|
||||||
shell: bash -e -o pipefail -l {0}
|
|
||||||
env:
|
|
||||||
# TODO: upload this secret to github
|
|
||||||
BAZEL_LOG_BUCKET_ACCESS_KEY: ${{ secrets.BAZEL_LOG_BUCKET_ACCESS_KEY }}
|
BAZEL_LOG_BUCKET_ACCESS_KEY: ${{ secrets.BAZEL_LOG_BUCKET_ACCESS_KEY }}
|
||||||
TRAVIS_BRANCH: ${{ github.ref }}
|
TRAVIS_BRANCH: ${{ github.ref }}
|
||||||
TRAVIS_COMMIT: ${{ github.sha }}
|
TRAVIS_COMMIT: ${{ github.sha }}
|
||||||
TRAVIS_JOB_ID: ${{ github.run_id }}
|
TRAVIS_JOB_ID: ${{ github.run_id }}
|
||||||
run: |
|
run: |
|
||||||
./ci/travis/upload_build_info.sh
|
function clean_up() {
|
||||||
|
echo "Performing cleanup"
|
||||||
|
if [ "${GITHUB_EVENT_NAME}" != "pull_request" ]; then ./ci/travis/upload_build_info.sh; fi
|
||||||
|
}
|
||||||
|
trap clean_up EXIT
|
||||||
|
|
||||||
|
python -u ci/remote-watch.py --skip_repo=ray-project/ray &
|
||||||
|
. ./ci/travis/ci.sh init
|
||||||
|
. ./ci/travis/ci.sh build
|
||||||
|
. ./ci/travis/ci.sh upload_wheels || true
|
||||||
|
. ./ci/travis/ci.sh test_core
|
||||||
|
. ./ci/travis/ci.sh test_python
|
||||||
- name: Run Clang Include-What-You-Use
|
- name: Run Clang Include-What-You-Use
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
|
@ -253,6 +253,7 @@ def main(program, *args):
|
||||||
result = monitor()
|
result = monitor()
|
||||||
else:
|
else:
|
||||||
logger.info("Skipping monitoring %s %s build", repo_slug, event_name)
|
logger.info("Skipping monitoring %s %s build", repo_slug, event_name)
|
||||||
|
result = 0
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue