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 85
85
INTERFACE64 : ' 1'
86
86
MB_ML_LIBC : musllinux
87
87
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
88
96
89
97
exclude :
90
98
- PLAT : i686
@@ -120,12 +128,19 @@ jobs:
120
128
xcode-version : ' 14.3'
121
129
122
130
- name : Allow docker with qemu
123
- if : ${{ matrix.PLAT == ' aarch64' }}
131
+ if : contains(fromJson('[" aarch64", "loongarch64"]'), matrix.PLAT)
124
132
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
+
129
144
- name : Print some Environment variable
130
145
run : |
131
146
echo "PLAT: ${PLAT}"
@@ -170,6 +185,9 @@ jobs:
170
185
else
171
186
libc=${MB_ML_LIBC:-manylinux}
172
187
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
173
191
docker run --rm -e INTERFACE64="${INTERFACE64}" \
174
192
-e MB_ML_LIBC="${MB_ML_LIBC}" \
175
193
-v $(pwd):/openblas $docker_image \
You can’t perform that action at this time.
0 commit comments