File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed
Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 8585 INTERFACE64 : ' 1'
8686 MB_ML_LIBC : musllinux
8787 MB_ML_VER : _1_2
88+ - os : ubuntu-latest
89+ PLAT : loongarch64
90+ INTERFACE64 : ' 0'
91+ MB_ML_VER : _2_38
92+ - os : ubuntu-latest
93+ PLAT : loongarch64
94+ INTERFACE64 : ' 1'
95+ MB_ML_VER : _2_38
8896
8997 exclude :
9098 - PLAT : i686
@@ -120,12 +128,19 @@ jobs:
120128 xcode-version : ' 14.3'
121129
122130 - name : Allow docker with qemu
123- if : ${{ matrix.PLAT == ' aarch64' }}
131+ if : contains(fromJson('[" aarch64", "loongarch64"]'), matrix.PLAT)
124132 run : |
125- sudo apt-get update -q -y
126- sudo apt-get -qq install -y qemu qemu-user-static
127- sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
128-
133+ case ${{ matrix.PLAT }} in
134+ aarch64)
135+ sudo apt-get update -q -y
136+ sudo apt-get -qq install -y qemu qemu-user-static
137+ sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
138+ ;;
139+ loongarch64)
140+ sudo docker run --rm --privileged ghcr.io/loong64/qemu-user-static --reset -p yes --credential yes
141+ ;;
142+ esac
143+
129144 - name : Print some Environment variable
130145 run : |
131146 echo "PLAT: ${PLAT}"
@@ -170,6 +185,9 @@ jobs:
170185 else
171186 libc=${MB_ML_LIBC:-manylinux}
172187 docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
188+ if [ "${{ matrix.PLAT }}" == "loongarch64" ]; then
189+ docker_image=ghcr.io/loong64/${libc}${MB_ML_VER}_${PLAT}
190+ fi
173191 docker run --rm -e INTERFACE64="${INTERFACE64}" \
174192 -e MB_ML_LIBC="${MB_ML_LIBC}" \
175193 -v $(pwd):/openblas $docker_image \
You can’t perform that action at this time.
0 commit comments