ci: make ci run selectively (#745)

This commit is contained in:
Cai Bingjun 2023-04-09 02:30:35 +08:00 committed by GitHub
parent 406c73701f
commit 959c20d38b
Failed to generate hash of commit
3 changed files with 20 additions and 3 deletions

View file

@ -1,7 +1,17 @@
name: CI name: CI
on: on:
- push push:
- pull_request paths-ignore:
- "doc/**"
- "README.md"
- "**.md"
- "LICENSE**"
pull_request:
paths-ignore:
- "doc/**"
- "README.md"
- "**.md"
- "LICENSE**"
jobs: jobs:
x86_64-linux: x86_64-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -6,7 +6,12 @@ on:
# #
# Whenever GitHub Actions gets official M1 support, we can use that for PRs and get rid of this # 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 # self-hosted runner: https://github.com/actions/virtual-environments/issues/2187
- push push:
paths-ignore:
- "doc/**"
- "README.md"
- "**.md"
- "LICENSE**"
jobs: jobs:
aarch64-macos: aarch64-macos:
if: ${{ github.repository == 'hexops/mach' }} if: ${{ github.repository == 'hexops/mach' }}

View file

@ -3,6 +3,8 @@ on:
push: push:
branches: branches:
- "main" - "main"
path:
- "libs/**"
jobs: jobs:
push: push:
runs-on: ubuntu-latest runs-on: ubuntu-latest