Skip to content
Snippets Groups Projects
Unverified Commit c454f1af authored by Shenghang Tsai's avatar Shenghang Tsai Committed by GitHub
Browse files

Fix master not running Simple CI (#5368)


Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 52ecdb98
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ on:
jobs:
cancel_previous:
name: Cancel previous runs
if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs of outdated commit
......@@ -25,7 +24,7 @@ jobs:
access_token: ${{ github.token }}
hosted:
name: CPU-only
if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
if: github.ref == 'refs/heads/master' || (github.event.pull_request.draft == false && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot'))
runs-on: ${{ matrix.os }}
needs: [cancel_previous]
strategy:
......@@ -131,7 +130,7 @@ jobs:
shell: bash
- name: Build (ALL)
if: always()
continue-on-error: ${{ matrix.cmake_generator == 'Ninja' && matrix.build_shared_libs == 'ON' }}
continue-on-error: ${{ startsWith(runner.os, 'macOS') && matrix.cmake_generator == 'Ninja' && matrix.build_shared_libs == 'ON' }}
run: |
mkdir -p build
cd build
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment