fix: GitHub actions: automatically select newest qemu-user-static version
@@ -10,5 +10,8 @@ jobs:
modifier: [ "", "-dev" ]
steps:
- uses: actions/checkout@v2
- - run: wget https://deb.debian.org/debian/pool/main/q/qemu/qemu-user-static_6.2+dfsg-1_amd64.deb && sudo dpkg -i qemu-user-static_6.2+dfsg-1_amd64.deb
+ - run: |
+ version=$(curl -s -f https://deb.debian.org/debian/pool/main/q/qemu/ | grep -oP '(?<=href="qemu-user-static_).*?(?=_amd64.deb")' | sort | tail -n 1)
+ wget https://deb.debian.org/debian/pool/main/q/qemu/qemu-user-static_${version}_amd64.deb
+ sudo dpkg -i qemu-user-static_${version}_amd64.deb
- run: make ARCH=${{ matrix.architecture }} ${{ matrix.target }}${{ matrix.modifier }}
