fix: minor issues with CI

* update ctor

* pass empty `RUSTFLAGS` when installing cross, overriding
the default `-D warnings`

* fix some clippy lints

* create `target` directory before curling wasmtime lib
This commit is contained in:
Will Lillis 2024-12-03 16:41:38 -05:00 committed by GitHub
parent e445532a1f
commit c7b218838d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 13 additions and 11 deletions

View file

@ -88,7 +88,8 @@ jobs:
- name: Install cross
if: ${{ matrix.use-cross }}
run: cargo install cross --git https://github.com/cross-rs/cross
# TODO: Remove 'RUSTFLAGS=""' onc https://github.com/cross-rs/cross/issues/1561 is resolved
run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
- name: Configure cross
if: ${{ matrix.use-cross }}
@ -138,6 +139,7 @@ jobs:
- name: Build wasmtime library
if: ${{ !matrix.use-cross && contains(matrix.features, 'wasm') }}
run: |
mkdir -p target
WASMTIME_VERSION=$(cargo metadata --format-version=1 --locked --features wasm | \
jq -r '.packages[] | select(.name == "wasmtime-c-api-impl") | .version')
curl -LSs "$WASMTIME_REPO/archive/refs/tags/v${WASMTIME_VERSION}.tar.gz" | tar xzf - -C target