Skip to content

Commit

Permalink
ci: enable compilation check for v2 features by running check_v2 on…
Browse files Browse the repository at this point in the history
… merge_group (#5804)
  • Loading branch information
sai-harsha-vardhan authored Sep 5, 2024
1 parent e15ea18 commit 4edf2f2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
26 changes: 26 additions & 0 deletions .github/workflows/CI-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 4edf2f2

Please sign in to comment.