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