-
Notifications
You must be signed in to change notification settings - Fork 27
cargo: make vss-server/impls easier to consume as a library #116
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
base: main
Are you sure you want to change the base?
Changes from all commits
0cf41d9
f4ae56b
019b348
50ced5c
7a3e207
f18aec2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Continuous Integration Checks | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| jobs: | ||
| rustfmt: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| env: | ||
| TOOLCHAIN: 1.85.0 | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v7 | ||
| - name: Install Rust ${{ env.TOOLCHAIN }} toolchain | ||
| run: | | ||
| rustup toolchain install ${{ env.TOOLCHAIN }} --profile minimal | ||
| rustup default ${{ env.TOOLCHAIN }} | ||
| rustup component add rustfmt | ||
| - name: Run rustfmt checks | ||
| run: cargo fmt --check | ||
|
|
||
| minimal-versions: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| toolchain: [ stable, 1.85.0 ] # 1.85.0 is the MSRV | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v7 | ||
| - name: Install Rust ${{ matrix.toolchain }} toolchain | ||
| run: | | ||
| rustup toolchain install ${{ matrix.toolchain }} --profile minimal | ||
| rustup default ${{ matrix.toolchain }} | ||
| - name: Install cargo-hack | ||
| uses: taiki-e/install-action@cargo-hack | ||
| - uses: Swatinem/rust-cache@v2 | ||
| - name: "check -Z direct-minimal-versions" | ||
| run: | | ||
| # Remove dev-deps from all Cargo.toml's to prevent `cargo update` from | ||
| # determining minimal versions based on dev-deps. | ||
| cargo hack --remove-dev-deps --workspace | ||
|
|
||
| # Resolve direct dependencies using the min. version specified in our | ||
| # Cargo.toml's. | ||
| RUSTC_BOOTSTRAP=1 cargo update -Z direct-minimal-versions | ||
|
|
||
| cargo check --workspace | ||
| cargo check --workspace --no-default-features |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't update the Is it worth adding some automated testing for this case ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, I usually do something like this in CI: # Remove dev-deps from Cargo.toml to prevent `cargo update` determining minimal
# versions based on dev-deps.
cargo hack --remove-dev-deps --workspace
# Resolve direct dependencies using the min. version in our Cargo.toml's.
RUSTC_BOOTSTRAP=1 cargo update -Z direct-minimal-versions
cargo check --workspaceI'll add this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
Uh oh!
There was an error while loading. Please reload this page.