Auto-detect QEMU_URL
@@ -214,11 +214,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install QEMU
- env:
- QEMU_DEB: "qemu-user-static_4.2-3ubuntu5_amd64.deb"
run: |
- wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/${{ env.QEMU_DEB }}
- sudo dpkg -i ${{ env.QEMU_DEB }}
+ QEMU_URL=`curl -s http://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/ \
+ | grep -o -E 'href="([^"#]+)"' \
+ | cut -d'"' -f2 \
+ | grep "qemu-user-static_4\.2-.*_amd64.deb$"`
+ wget $QEMU_URL -O qemu-user-static.deb
+ sudo dpkg -i qemu-user-static.deb
- name: Install ${{ matrix.config.toolchain }}
run: |
sudo apt update
