From ea161a6e80e1177f887a09a7a98cf296772dafe2 Mon Sep 17 00:00:00 2001 From: ahaoboy <504595380@qq.com> Date: Tue, 23 Apr 2024 23:56:24 +0800 Subject: [PATCH] fix ci --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68a8177c..1ebd3179 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -308,8 +308,13 @@ jobs: - name: Setup android toolchain if: contains(matrix.target, 'android') run: | + case "${{ matrix.target }}" in + i686-*) SYSTEM_ARCH=i386 ;; + esac + sudo apt-get update -y sudo apt-get install -y + GCC_TARGET=$(printf "${{ matrix.target }}" | sed 's/-unknown-/-/' | sed 's/arm[^-]*/arm/g') ENV_TARGET=$(printf "${{ matrix.target }}" | tr '[:lower:]' '[:upper:]' | tr '-' '_') sudo dpkg --add-architecture ${SYSTEM_ARCH} @@ -321,6 +326,7 @@ jobs: case "${{ matrix.target }}" in i686-*) SYSTEM_ARCH=i386 ;; esac + GCC_TARGET=$(printf "${{ matrix.target }}" | sed 's/-unknown-/-/' | sed 's/arm[^-]*/arm/g') ENV_TARGET=$(printf "${{ matrix.target }}" | tr '[:lower:]' '[:upper:]' | tr '-' '_') sudo dpkg --add-architecture ${SYSTEM_ARCH}