fix(ci): selectively revert resolver for arm64 builds
Description:
Revert resolver from 2 to 1 for ARM64 builds
Motivation and Context:
Fix ARM64 binary builds
How Has This Been Tested?
Build locally in fork
@@ -178,6 +178,10 @@ jobs:
- name: Cache cargo files and outputs
uses: Swatinem/rust-cache@v1
+ - name: Revert Cargo.toml for Ubuntu to cross-compile ARM64
+ if: ${{ startsWith(runner.os,'Linux') && matrix.builds.name == 'linux-arm64' }}
+ run: sed -i-bak -e '/^resolver/s/2/1/' Cargo.toml
+
- name: Build rust binaries - Normal
#if: ${{ matrix.builds.name != 'linux-arm64' }}
uses: actions-rs/cargo@v1
