Skip to content

Commit 957b852

Browse files
authored
[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
1 parent 905918f commit 957b852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
uses: docker/setup-qemu-action@v3.0.0
112112
- name: Build cpuinfo in ${{ matrix.build_props[1] }}
113113
run: |
114-
docker run -i -v $(pwd):/cpuinfo ${{ matrix.build_props[1] }} /bin/bash -c "
114+
docker run --platform linux/riscv64 -i -v $(pwd):/cpuinfo ${{ matrix.build_props[1] }} /bin/bash -c "
115115
apt update &&
116116
apt install -y cmake git gcc g++ &&
117117
cd /cpuinfo &&

0 commit comments

Comments
 (0)