From 0356c65f04029d96870dff1f46483f9f8941f038 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 23 May 2020 18:55:39 -0400 Subject: [PATCH] test: use last matching qemu version The QEMU CI broke recently. The calculation to determine the QEMU version to install now returns multiple versions. This commit updates the logic to only take the last result (which I think will be the newest matching version). PR-URL: https://github.com/libuv/libuv/pull/2864 Reviewed-By: Santiago Gimeno Reviewed-By: Ben Noordhuis --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 008de826..333decf7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -37,7 +37,7 @@ jobs: QEMU_SRC: "http://archive.ubuntu.com/ubuntu/pool/universe/q/qemu" QEMU_VER: "qemu-user-static_4\\.2-.*_amd64.deb$" run: | - DEB=`curl -s $QEMU_SRC/ | grep -o -E 'href="([^"#]+)"' | cut -d'"' -f2 | grep $QEMU_VER` + DEB=`curl -s $QEMU_SRC/ | grep -o -E 'href="([^"#]+)"' | cut -d'"' -f2 | grep $QEMU_VER | tail -1` wget $QEMU_SRC/$DEB sudo dpkg -i $DEB - name: Install ${{ matrix.config.toolchain }}