Skip to content

Commit

Permalink
drop setup for windows cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Oct 16, 2023
1 parent c05304e commit ef31316
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit ef31316

Please sign in to comment.