Skip to content

Commit

Permalink
Update cmake-ninja-crossbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Mar 28, 2023
1 parent 2659e46 commit a95a8d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cmake-ninja-crossbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ jobs:
- name: Host - upgrade
run: sudo apt-get -y upgrade

- name: Host - Install host qemu-static
run: sudo apt-get install -y qemu binfmt-support qemu-user-static
- name: Host - Install qemu-static and binfmt-support from lunar ${{ github.event.inputs.distinct_id }}
run: |
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')"
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')"
curl -sLo qemuuserstatic.deb "http://nl.archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_${qemuuserstatic#*:}_amd64.deb"
curl -sLo binfmtsupport.deb "http://nl.archive.ubuntu.com/ubuntu/pool/universe/b/binfmt-support/binfmt-support_${binfmtsupport}_amd64.deb"
- name: Host - Docker multiarch bootstrap
run: sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
sudo dpkg -i qemuuserstatic.deb
sudo dpkg -i binfmtsupport.deb
- name: Host - Create Docker template env file
run: |
Expand Down

0 comments on commit a95a8d0

Please sign in to comment.