-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Consolidate CI web builds into the build workflow and restore deployments to GitHub environments #3916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+197
−261
Merged
Consolidate CI web builds into the build workflow and restore deployments to GitHub environments #3916
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e5a4d8f
Restore the CI "View deployment" button in PRs after building
Keavon e3d25b6
Consolidate release.yml functionality into build.yml
Keavon 8a69a8d
Move build from ci.yml to a delegated run in build.yml
Keavon 565f637
Rename CI to Check
Keavon 5dec45f
Code review fixes
Keavon 2bd4c44
Review 2
Keavon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,101 @@ | ||
| name: "Check" | ||
|
|
||
| on: | ||
| pull_request: {} | ||
| merge_group: {} | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| # Check if CI can be skipped (for merge queue deduplication) | ||
| skip-check: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| skip: ${{ steps.check.outputs.skip-check }} | ||
| steps: | ||
| - name: 📥 Clone repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🚦 Check if CI can be skipped | ||
| id: check | ||
| uses: cariad-tech/merge-queue-ci-skipper@cf80db21fc70244e36487acc531b3f1118889b0a | ||
|
|
||
| # Build the web app via the shared build workflow | ||
| build: | ||
| needs: skip-check | ||
| if: needs.skip-check.outputs.skip != 'true' | ||
| uses: ./.github/workflows/build.yml | ||
cubic-dev-ai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| secrets: inherit | ||
| with: | ||
| web: true | ||
cubic-dev-ai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Run the Rust tests on the self-hosted native runner | ||
| test: | ||
| needs: skip-check | ||
| if: needs.skip-check.outputs.skip != 'true' | ||
| runs-on: [self-hosted, target/native] | ||
| env: | ||
| RUSTC_WRAPPER: /usr/bin/sccache | ||
| CARGO_INCREMENTAL: 0 | ||
| SCCACHE_DIR: /var/lib/github-actions/.cache | ||
| steps: | ||
| - name: 📥 Clone repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🦀 Install Rust | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
| cache: false | ||
| rustflags: "" | ||
|
|
||
| - name: 🦀 Fetch Rust dependencies | ||
| run: cargo fetch --locked | ||
|
|
||
| - name: 🧪 Run Rust tests | ||
| env: | ||
| RUSTFLAGS: -Dwarnings | ||
| run: mold -run cargo test --all-features | ||
|
|
||
| # Rust format check on GitHub runner | ||
| rust-fmt: | ||
| needs: skip-check | ||
| if: needs.skip-check.outputs.skip != 'true' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 📥 Clone repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🦀 Install Rust | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
| cache: false | ||
| rustflags: "" | ||
| components: rustfmt | ||
|
|
||
| - name: 🔬 Check Rust formatting | ||
| run: cargo fmt --all -- --check | ||
|
|
||
| # License compatibility check on GitHub runner | ||
| check-licenses: | ||
| needs: skip-check | ||
| if: needs.skip-check.outputs.skip != 'true' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 📥 Clone repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 📜 Check crate license compatibility for root workspace | ||
| uses: EmbarkStudios/cargo-deny-action@v2 | ||
| with: | ||
| command: check bans licenses sources | ||
|
|
||
| - name: 📜 Check crate license compatibility for /libraries/rawkit | ||
| uses: EmbarkStudios/cargo-deny-action@v2 | ||
| with: | ||
| command: check bans licenses sources | ||
| manifest-path: libraries/rawkit/Cargo.toml | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why, I would expect it to also build on pushing the tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That build already occurs when we originally push the commit. We haven't yet set up GitHub Releases deployments, but this clause will be removed when we do that.