-
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.
ci: enable compilation check for v2 features by running
check_v2
on…
… merge_group (#5804)
- Loading branch information
1 parent
e15ea18
commit 4edf2f2
Showing
2 changed files
with
30 additions
and
2 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 |
---|---|---|
|
@@ -297,12 +297,10 @@ jobs: | |
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable 2 weeks ago | ||
components: clippy | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
|
||
|
||
- name: Install just | ||
uses: taiki-e/[email protected] | ||
with: | ||
|
@@ -316,3 +314,7 @@ jobs: | |
# # We only want to ensure successful compilation for now. | ||
# RUSTFLAGS: "-D warnings -A clippy::todo" | ||
run: just check_v2 | ||
|
||
- name: Run cargo check enabling only the release and v2 features | ||
shell: bash | ||
run: cargo check --no-default-features --features "release,v2" |
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 |
---|---|---|
|
@@ -197,3 +197,29 @@ jobs: | |
|
||
- name: Spell check | ||
uses: crate-ci/typos@master | ||
|
||
check-v2: | ||
name: Check compilation for V2 features | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install mold linker | ||
uses: rui314/setup-mold@v1 | ||
if: ${{ runner.os == 'Linux' }} | ||
with: | ||
make-default: true | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable 2 weeks ago | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Run cargo check enabling only the release and v2 features | ||
shell: bash | ||
run: cargo check --no-default-features --features "release,v2" |