From 959c20d38b829eacbf6f23c3f1f9d98c9a2148a0 Mon Sep 17 00:00:00 2001 From: Cai Bingjun <1945458160@qq.com> Date: Sun, 9 Apr 2023 02:30:35 +0800 Subject: [PATCH] ci: make ci run selectively (#745) --- .github/workflows/ci.yml | 14 ++++++++++++-- .github/workflows/m1_ci.yml | 7 ++++++- .github/workflows/push_subrepos.yml | 2 ++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f9da247..8fcc84ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,17 @@ name: CI on: - - push - - pull_request + push: + paths-ignore: + - "doc/**" + - "README.md" + - "**.md" + - "LICENSE**" + pull_request: + paths-ignore: + - "doc/**" + - "README.md" + - "**.md" + - "LICENSE**" jobs: x86_64-linux: runs-on: ubuntu-latest diff --git a/.github/workflows/m1_ci.yml b/.github/workflows/m1_ci.yml index 3ff5d17b..cfe6f654 100644 --- a/.github/workflows/m1_ci.yml +++ b/.github/workflows/m1_ci.yml @@ -6,7 +6,12 @@ on: # # Whenever GitHub Actions gets official M1 support, we can use that for PRs and get rid of this # self-hosted runner: https://github.com/actions/virtual-environments/issues/2187 - - push + push: + paths-ignore: + - "doc/**" + - "README.md" + - "**.md" + - "LICENSE**" jobs: aarch64-macos: if: ${{ github.repository == 'hexops/mach' }} diff --git a/.github/workflows/push_subrepos.yml b/.github/workflows/push_subrepos.yml index c255c8a4..f579f58a 100644 --- a/.github/workflows/push_subrepos.yml +++ b/.github/workflows/push_subrepos.yml @@ -3,6 +3,8 @@ on: push: branches: - "main" + path: + - "libs/**" jobs: push: runs-on: ubuntu-latest