Skip to content

Commit

Permalink
Fix features; sed usage
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 18, 2023
1 parent f5883cf commit eed22ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eed22ce

Please sign in to comment.