Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Apr 23, 2024
1 parent ea161a6 commit d586b68
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ jobs:
case "${{ matrix.target }}" in
i686-*) SYSTEM_ARCH=i386 ;;
esac
SYSTEM_ARCH=aarch64
sudo apt-get update -y
sudo apt-get install -y
Expand All @@ -323,10 +323,7 @@ jobs:
- name: Setup cross linux toolchain
if: contains(matrix.target, '-linux-') && !startsWith(matrix.target, 'aarch64') && !startsWith(matrix.target, 'x86_64-') && !endsWith(matrix.target, '-musl')
run: |
case "${{ matrix.target }}" in
i686-*) SYSTEM_ARCH=i386 ;;
esac
SYSTEM_ARCH=aarch64
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}
Expand Down

0 comments on commit d586b68

Please sign in to comment.