[CI] Fix riscv64-in-qemu build (#295)
Tried a few things, but looks like all one needs to do is to add `--platform linux/riscv64` flag to `docker run` command
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0373cc9..1394223 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -111,7 +111,7 @@
uses: docker/setup-qemu-action@v3.0.0
- name: Build cpuinfo in ${{ matrix.build_props[1] }}
run: |
- docker run -i -v $(pwd):/cpuinfo ${{ matrix.build_props[1] }} /bin/bash -c "
+ docker run --platform linux/riscv64 -i -v $(pwd):/cpuinfo ${{ matrix.build_props[1] }} /bin/bash -c "
apt update &&
apt install -y cmake git gcc g++ &&
cd /cpuinfo &&