Skip to content

Commit

Permalink
Merge branch 'main' into kb/migrate-to-concrete-types
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak authored Oct 15, 2023
2 parents 25cc7a5 + 1f2c685 commit b0a0140
Showing 1 changed file with 14 additions and 47 deletions.
61 changes: 14 additions & 47 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_FMT }}
override: true
components: rustfmt
uses: actions/checkout@v4
- name: Format
run: |
rustup default $RUST_FMT
rustup component add rustfmt
cargo fmt -- --color=always --check
"lint_doc":
Expand All @@ -44,59 +39,31 @@ jobs:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Install protobuf
run: sudo apt-get install -y protobuf-compiler
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
- name: Docs
run: |
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --color=always
rustup default $RUST_VERSION
rustup component add rust-docs
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --features postgres --color=always
"lint_clippy":
"lint_clippy_test":
name: lint:clippy
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Clippy
run: |
rustup default $RUST_VERSION
rustup component add clippy
cargo clippy --features=postgres --color=always --tests --benches --examples -- -D warnings
"cargo_test":
name: cargo:test
runs-on: ubuntu-latest
needs:
- lint_clippy
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt
- name: Test
run: cargo test
# Examples can be large with a lot of debug info due to tokio. So we
# disable debug info generation.
RUSTFLAGS="-C debuginfo=0" cargo test

0 comments on commit b0a0140

Please sign in to comment.