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
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

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
# 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' }}

View file

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