-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the huge workspace into smaller & improve CI (#2774)
* Split repository into multiple workspaces, update CI * pull_request_target for build-website workflow This should allow the workflow to read secrets instead of requiring a different, publish-website workflow to be needed to publish the side * pull_request_target for build-api-docs workflow This should allow the workflow to read secrets instead of requiring a different, publish-api-docs workflow to be needed to publish the side * use `paths` instead of `path_ignore` for examples * cleanup main-checks.yml * it's rustfmt, not fmt * correct paths for workflow files * it's rustfmt, not fmt: part 2 electric bolgoo * me idiot: part infinity * ??? * main checks should be the same then? * ??? part 2 * it should work now * more fixes * checkout before using file, actually use stable for wasm-bindgen-cli * Revert "pull_request_target for build-api-docs workflow" This reverts commit 3897729. * Revert "pull_request_target for build-website workflow" This reverts commit 1638a0c. * Benchmark workflow uses pull_request event * pull_request for size-cmp
- Loading branch information
Showing
20 changed files
with
2,093 additions
and
136 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
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
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
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
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
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
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,55 @@ | ||
name: Tools & Examples | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/tools-examples.yml' | ||
- 'tools/**/*' | ||
- 'examples/**/*' | ||
push: | ||
branches: [ master ] | ||
|
||
|
||
jobs: | ||
clippy-fmt: | ||
name: Clippy & Format | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
workspace: | ||
- tools | ||
- examples | ||
runs: | ||
- clippy | ||
- rustfmt | ||
include: | ||
- toolchain: stable | ||
runs: clippy | ||
- toolchain: nightly | ||
runs: rustfmt | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
override: true | ||
profile: minimal | ||
components: ${{ matrix.runs }} | ||
|
||
- uses: Swatinem/rust-cache@v1 | ||
|
||
- name: Run clippy for ${{ matrix.workspace }} | ||
if: matrix.runs == 'clippy' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features --manifest-path ${{ matrix.workspace }}/Cargo.toml -- -D warnings | ||
|
||
- name: Run fmt for ${{ matrix.workspace }} | ||
if: matrix.runs == 'rustfmt' | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all --manifest-path ${{ matrix.workspace }}/Cargo.toml -- --check |
Oops, something went wrong.