Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Added temp. workaround for code-gen limitations.
Browse files Browse the repository at this point in the history
  • Loading branch information
rustonaut committed Jan 7, 2022
1 parent 35350db commit 01e578a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/integration_tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ jobs:

- name: Build Rust
working-directory: ${{ env.RUST_WORKSPACE }}
run: cargo build -p integration-tests-bindings
run: |
# Workaround for code-gen bug
cargo check --quiet 2>/dev/null || :
cargo build -p integration-tests-bindings
- name: Unit test of integration test crate
working-directory: ${{ env.RUST_WORKSPACE }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ jobs:

- name: cargo clippy
working-directory: ${{ env.RUST_WORKSPACE }}
run: cargo clippy --all-targets -- --deny warnings
run: |
# Workaround for code-gen bug
cargo check --quiet 2>/dev/null || :
cargo clippy --all-targets -- --deny warnings
cargo-test:
runs-on: ubuntu-20.04
Expand All @@ -102,6 +105,8 @@ jobs:
- name: Run tests
working-directory: ${{ env.RUST_WORKSPACE }}
run: |
# Workaround for code-gen bug
cargo check --quiet 2>/dev/null || :
cargo test --all-targets --quiet
cargo test --doc --quiet
Expand Down
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ cd "$(dirname $0)"
cargo +nightly fmt --all -- --check
cargo sort --grouped --workspace --check

# Workaround for code-gen bug
cargo check --quiet 2>/dev/null || :

cargo clippy --all

cargo test
Expand Down

0 comments on commit 01e578a

Please sign in to comment.