Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: enable compilation check for v2 features by running check_v2 on merge_group #5804

Merged
merged 5 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/rust-cache@v2.7.0


- name: Install just
uses: taiki-e/install-action@v2.41.10
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/rust-cache@v2.7.0

- name: Run cargo check enabling only the release and v2 features
shell: bash
run: cargo check --no-default-features --features "release,v2"
Loading