Skip to content

Commit a95a8d0

Browse files
committed
Update cmake-ninja-crossbuild.yml
1 parent 2659e46 commit a95a8d0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/cmake-ninja-crossbuild.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,16 @@ jobs:
5454
- name: Host - upgrade
5555
run: sudo apt-get -y upgrade
5656

57-
- name: Host - Install host qemu-static
58-
run: sudo apt-get install -y qemu binfmt-support qemu-user-static
57+
- name: Host - Install qemu-static and binfmt-support from lunar ${{ github.event.inputs.distinct_id }}
58+
run: |
59+
qemuuserstatic="$(curl -sL 'https://api.launchpad.net/1.0/ubuntu/+archive/primary?ws.op=getPublishedSources&pocket=Release&source_name=qemu&exact_match=true' | jq -r '.entries[0].source_package_version')"
60+
binfmtsupport="$(curl -sL 'https://api.launchpad.net/1.0/ubuntu/+archive/primary?ws.op=getPublishedSources&pocket=Release&source_name=binfmt-support&exact_match=true' | jq -r '.entries[0].source_package_version')"
61+
62+
curl -sLo qemuuserstatic.deb "http://nl.archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_${qemuuserstatic#*:}_amd64.deb"
63+
curl -sLo binfmtsupport.deb "http://nl.archive.ubuntu.com/ubuntu/pool/universe/b/binfmt-support/binfmt-support_${binfmtsupport}_amd64.deb"
5964
60-
- name: Host - Docker multiarch bootstrap
61-
run: sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
65+
sudo dpkg -i qemuuserstatic.deb
66+
sudo dpkg -i binfmtsupport.deb
6267
6368
- name: Host - Create Docker template env file
6469
run: |

0 commit comments

Comments
 (0)