Skip to content

Commit

Permalink
Fix/ci (#292)
Browse files Browse the repository at this point in the history
* install qemu in CI

* install qemu in CI
  • Loading branch information
cyn6315 committed Aug 31, 2022
1 parent cf08d54 commit 0a3d980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push-check-arm.yml
Expand Up @@ -26,5 +26,8 @@ jobs:
- name: Compatibility Test
run: |
printf ' #!/bin/bash\n if [ ! -x "/usr/bin/qemu-x86_64" ];then\n sudo apt-get update\n sudo apt-get -y install make gcc g++ libglib2.0-dev libpixman-1-dev libfdt-dev python3-pip ninja-build\n sudo pip3 install meson\n wget https://download.qemu.org/qemu-6.2.0.tar.xz\n tar -xvf qemu-6.2.0.tar.xz\n cd qemu-6.2.0\n sudo ./configure\n sudo make -j 4\n sudo make install\n cd ..\n cp /usr/local/bin/qemu-x86_64 /usr/bin/qemu-x86_64\n fi\n' > qemu_install.sh
chmod +x qemu_install.sh
./qemu_install.sh
GOARCH=amd64 go test -gcflags=-d=checkptr=0 -c .
qemu-x86_64 -cpu max ./sonic.test -test.v

0 comments on commit 0a3d980

Please sign in to comment.