diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 0f84d8c2..382a1f27 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -48,9 +48,3 @@ runs: echo "AR_aarch64_unknown_linux_gnu=aarch64-linux-gnu-ar" >> $GITHUB_ENV echo "CFLAGS_aarch64_unknown_linux_gnu=--sysroot=/usr/aarch64-linux-gnu" >> $GITHUB_ENV echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV - - name: Cross Compile Dependencies (Windows) - if: inputs.arch == 'aarch64' && startsWith(inputs.os, 'windows') - shell: bash - run: | - echo "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH - echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d0eb959..b9816c55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,10 @@ jobs: arch: - x86_64 - aarch64 + exclude: + # Failed to cross compile ring on Windows + - os: windows-latest + arch: aarch64 steps: - name: Checkout uses: actions/checkout@v4 @@ -58,7 +62,6 @@ jobs: cargo fmt --all -- --check - name: Build (maa-cli) run: | - echo $PATH cargo build --package maa-cli --locked - name: Test (maa-cli) if: matrix.arch == 'x86_64'