Skip to content

Commit d0fae1e

Browse files
committed
Add cargo-check-external-types to ci
1 parent 36dec54 commit d0fae1e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,27 @@ jobs:
118118
- uses: dtolnay/rust-toolchain@stable
119119
- name: Run Clippy
120120
run: cargo clippy --all-targets --all-features -- -D warnings
121+
CheckExternalTypes:
122+
name: check-external-types (${{ matrix.os }})
123+
runs-on: ${{ matrix.os }}
124+
strategy:
125+
matrix:
126+
os:
127+
- windows-latest
128+
- ubuntu-latest
129+
rust:
130+
# `check-external-types` requires a specific Rust nightly version. See
131+
# the README for details: https://github.com/awslabs/cargo-check-external-types
132+
- nightly-2024-06-30
133+
steps:
134+
- uses: actions/checkout@v4
135+
- name: Install Rust ${{ matrix.rust }}
136+
uses: dtolnay/rust-toolchain@stable
137+
with:
138+
toolchain: ${{ matrix.rust }}
139+
- name: Install cargo-check-external-types
140+
uses: taiki-e/cache-cargo-install-action@v1
141+
with:
142+
143+
- name: check-external-types
144+
run: cargo check-external-types --all-features

0 commit comments

Comments
 (0)