From eed22cef4520820134277e5a89bfe14ba8163b8b Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Wed, 18 Oct 2023 05:59:09 -0400 Subject: [PATCH] Fix features; sed usage --- .github/workflows/rust.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cf98db31b..592e50112 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -34,12 +34,14 @@ jobs: matrix: environment: [ubuntu-latest, macos-latest] toolchain: [stable, nightly] - features: [default, cmplog] cc: [cc, clang] - exclude: + include: - toolchain: stable + features: default + - toolchain: nightly + features: default + - toolchain: nightly features: cmplog - include: - cc: cc cxx: c++ - cc: clang @@ -58,7 +60,7 @@ jobs: run: | wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh - LLVM_VERSION="$(rustc --version -v | sed -n 's/^LLVM version: \([^.]*\).*$/\1/;T;p')" + LLVM_VERSION="$(rustc --version -v | sed -n 's/^LLVM version: \([^.]*\).*$/\1/;t print;q;print: p')" sudo ./llvm.sh "$LLVM_VERSION" - name: Build run: cargo build --features=${{ matrix.features }} -vv