@@ -219,35 +219,17 @@ jobs:
219219 runs-on : ubuntu-latest
220220 steps :
221221 - uses : actions/checkout@v4
222- - name : Cache Rust toolchain
223- uses : actions/cache@v4
224- with :
225- path : |
226- ~/.rustup/toolchains
227- ~/.rustup/downloads
228- key : rust-toolchain-${{ runner.os }}-${{ matrix.rust }}-${{ matrix.target }}
229- restore-keys : |
230- rust-toolchain-${{ runner.os }}-${{ matrix.rust }}
231- - run : ${{ matrix.deps }}
232- - uses : dtolnay/rust-toolchain@master
222+ - name : Cross-compile library
223+ uses : houseabsolute/actions-rust-cross@v1
233224 with :
225+ command : build
226+ target : ${{ matrix.target }}
234227 toolchain : ${{ matrix.rust }}
235- targets : ${{ matrix.target }}
236- - uses : RustCrypto/actions/cross-install@master
237- - name : Cache Cargo registry and index
238- uses : actions/cache@v4
228+ args : " --release --all-features"
229+ - name : Cross-test library
230+ uses : houseabsolute/actions-rust-cross@v1
239231 with :
240- path : |
241- ~/.cargo/registry
242- ~/.cargo/git
243- key : cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
244- restore-keys : |
245- cargo-${{ runner.os }}-
246- - name : Cache target directory
247- uses : actions/cache@v4
248- with :
249- path : target
250- key : cargo-cross-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
251- restore-keys : |
252- cargo-cross-${{ runner.os }}-${{ matrix.target }}-
253- - run : cross test --release --target ${{ matrix.target }} --all-features
232+ command : test
233+ target : ${{ matrix.target }}
234+ toolchain : ${{ matrix.rust }}
235+ args : " --release --all-features"
0 commit comments