Skip to content

Commit

Permalink
use qemu user
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Jan 29, 2025
1 parent 0e7c930 commit f4aa534
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:
sudo apt-get install -y gcc-multilib g++-multilib
elif [ "${{ matrix.arch }}" = "arm64" ]; then
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
sudo apt-get install -y qemu-user qemu-user-static binfmt-support
sudo apt-get install libc6:arm64 libstdc++6:arm64
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo update-binfmts --enable qemu-aarch64
sudo apt-get install -y qemu-user
fi
- name: Download GMP Source
Expand Down Expand Up @@ -112,7 +108,11 @@ jobs:
- name: Run C Program
run: |
LD_LIBRARY_PATH=${{ github.workspace }}/gmp-${GMP_VERSION}/.libs ./factorial_gmp
if [ "${{ matrix.arch }}" = "arm64" ]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu/ ${{ github.workspace }}/gmp-${GMP_VERSION}/.libs/ ${GITHUB_WORKSPACE}/factorial_gmp
else
LD_LIBRARY_PATH=${{ github.workspace }}/gmp-${GMP_VERSION}/.libs ./factorial_gmp
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit f4aa534

Please sign in to comment.