diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9c28c61d9..d7261fc81 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -58,7 +58,7 @@ jobs: run: | wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh - LLVM_VERSION="$(rustc --version -v | grep '^LLVM version:' | grep -m 1 -o '[0-9]\+')" + LLVM_VERSION="$(rustc --version -v | grep '^LLVM version:' | grep -o '[0-9]\+ | head -n 1')" sudo ./llvm.sh "$LLVM_VERSION" - name: Build run: cargo build --features=${{ matrix.features }} -vv