diff options
author | Nicolas Patry <patry.nicolas@protonmail.com> | 2023-06-29 08:24:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 08:24:31 +0200 |
commit | eda46d2df20f1b6186473e8ee7a26c2d36aa05df (patch) | |
tree | f2a510bafff959dfb2325e1531898f76453e4f7c | |
parent | 5f65d46c3297d0db5dde732c3c05ba873b877618 (diff) | |
parent | 0862e7d9e91981334b565c3d040a42634fb280ea (diff) | |
download | candle-eda46d2df20f1b6186473e8ee7a26c2d36aa05df.tar.gz candle-eda46d2df20f1b6186473e8ee7a26c2d36aa05df.tar.bz2 candle-eda46d2df20f1b6186473e8ee7a26c2d36aa05df.zip |
Merge pull request #32 from LaurentMazare/running_less_ci
Running CI only when pushing on `main` and on pull request.
-rw-r--r-- | .github/workflows/rust-ci.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 5ac88a3e..1f5b8c2e 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -1,4 +1,8 @@ -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: name: Continuous integration @@ -8,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-2019, macOS-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] rust: [stable] steps: - uses: actions/checkout@v2 @@ -27,7 +31,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-2019, macOS-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] rust: [stable] steps: - uses: actions/checkout@v2 |