-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from hoodie/feature/ci-pr-checks-fix
ci: run pr checks only on prs
- Loading branch information
Showing
3 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: Build Platforms | ||
# This workflow is triggered on pushes to the repository. | ||
on: [ pull_request, workflow_call, workflow_dispatch ] | ||
|
||
jobs: | ||
pr_check: | ||
name: Pull Request Check | ||
uses: ./.github/workflows/pull-request.yml | ||
|
||
semver: | ||
name: cargo-semver-checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: check semver | ||
uses: obi1kenobi/[email protected] | ||
|
||
linux: | ||
name: linux | ||
needs: pr_check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
#fail-fast: true | ||
|
@@ -70,7 +51,6 @@ jobs: | |
|
||
windows: | ||
name: windows | ||
needs: pr_check | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
|
@@ -95,10 +75,8 @@ jobs: | |
- name: clippy (default features) | ||
run: cargo clippy -- -D warnings | ||
|
||
|
||
macos: | ||
name: macos | ||
needs: pr_check | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Semver Checks | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
semver: | ||
name: cargo-semver-checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: check semver | ||
uses: obi1kenobi/[email protected] |