diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e66b9f8..f8453f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,7 +98,8 @@ jobs: key: ${{ runner.os }}-cargo-${{ matrix.arch }} - name: Build all run: | - cargo install cross --git https://github.com/cross-rs/cross + cargo install cross --force + cargo install --force --locked bindgen-cli export CROSS_CONTAINER_ENGINE_NO_BUILDKIT=1 cross build --release --target ${{ matrix.arch }} mkdir -p ./build diff --git a/Cross.toml b/Cross.toml index 5520152..7b4f772 100644 --- a/Cross.toml +++ b/Cross.toml @@ -1,7 +1,6 @@ [build] pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", - "apt-get update && apt-get --assume-yes install libc6-dev", - "cargo install --force --locked bindgen-cli" + "apt-get update && apt-get --assume-yes install libc6-dev" ] dockerfile = "Dockerfile.cross" \ No newline at end of file