Skip to content

Commit 7c4d05f

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

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

+25
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,28 @@ 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+
needs: basics
124+
runs-on: ${{ matrix.os }}
125+
strategy:
126+
matrix:
127+
os:
128+
- windows-latest
129+
- ubuntu-latest
130+
rust:
131+
# `check-external-types` requires a specific Rust nightly version. See
132+
# the README for details: https://github.com/awslabs/cargo-check-external-types
133+
- nightly-2024-06-30
134+
steps:
135+
- uses: actions/checkout@v4
136+
- name: Install Rust ${{ matrix.rust }}
137+
uses: dtolnay/rust-toolchain@stable
138+
with:
139+
toolchain: ${{ matrix.rust }}
140+
- name: Install cargo-check-external-types
141+
uses: taiki-e/cache-cargo-install-action@v1
142+
with:
143+
144+
- name: check-external-types
145+
run: cargo check-external-types --all-features

0 commit comments

Comments
 (0)