From 4857b6497f458b4649988b95a0563231952d9588 Mon Sep 17 00:00:00 2001
From: Shenghang Tsai <jackalcooper@gmail.com>
Date: Wed, 21 Jul 2021 01:27:46 +0800
Subject: [PATCH] Reduce usage of Simple CI (#5546)

* refine

* refine

Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
---
 .github/workflows/simple.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml
index 939893354..422a27fd7 100644
--- a/.github/workflows/simple.yml
+++ b/.github/workflows/simple.yml
@@ -24,12 +24,12 @@ jobs:
           access_token: ${{ github.token }}
   hosted:
     name: CPU-only
-    if: github.ref == 'refs/heads/master' || (github.event.pull_request.draft == false && 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') && contains(github.event.pull_request.labels.*.name, 'need-simple-ci'))
     runs-on: ${{ matrix.os }}
     needs: [cancel_previous]
     timeout-minutes: 120
     strategy:
-      fail-fast: false
+      fail-fast: true
       max-parallel: 3
       matrix:
         test_suite: ["conda", "mac", "ubuntu"]
@@ -49,6 +49,11 @@ jobs:
         exclude:
           - test_suite: conda
             cmake_generator: "Ninja"
+          - test_suite: mac
+            cmake_build_type: "Debug"
+          - test_suite: ubuntu
+            cmake_generator: "Ninja"
+            cmake_build_type: "Debug"
     steps:
       - uses: actions/checkout@v2
         with:
-- 
GitLab