From 0fd8e3ef5352155581a9eef579d337392e7db0f4 Mon Sep 17 00:00:00 2001 From: HalfSweet Date: Mon, 18 Dec 2023 17:56:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85cross?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03b7a2d..8895d3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: - name: aarch64-apple-darwin file_name : "macos-aarch64" os: macos-latest - + runs-on: ${{ matrix.target.os }} steps: @@ -50,7 +50,6 @@ jobs: sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y libudev-dev libusb-1.0-0-dev libssl-dev pkg-config - cargo install cross --git https://github.com/cross-rs/cross for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg -y; done # Add Docker's official GPG key: sudo apt-get update -y @@ -70,7 +69,9 @@ jobs: sudo systemctl start docker - name: Build - run: cross build --release --target ${{ matrix.target.name }} + run: | + cargo install cross --git https://github.com/cross-rs/cross + cross build --release --target ${{ matrix.target.name }} - name: package # 将编译好的二进制文件打包,如果是Windows就打包exe文件,其它系统打包AirISP*文件 run: |