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:
parent
e445532a1f
commit
c7b218838d
6 changed files with 13 additions and 11 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue