Skip to content

Commit 920ca5e

Browse files
committed
Use ternery operator
1 parent 6f6acc6 commit 920ca5e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,10 @@ jobs:
4545
brew install coreutils
4646
brew install llvm@16
4747
48-
- if: "matrix.os == 'macos-14'"
49-
name: "Run unit tests"
48+
- name: "Run unit tests"
5049
env:
51-
CC: "/opt/homebrew/opt/llvm@16/bin/clang"
52-
CXX: "/opt/homebrew/opt/llvm@16/bin/clang++"
53-
run: |-
54-
task clean
55-
task test-all
56-
57-
- if: "false == (matrix.os == 'macos-14')"
58-
name: "Run unit tests"
59-
run: |-
50+
CC: "${{ matrix.os == 'macos-14' && '/opt/homebrew/opt/llvm@16/bin/clang' || '' }}"
51+
CXX: "${{ matrix.os == 'macos-14' && '/opt/homebrew/opt/llvm@16/bin/clang++' || '' }}"
52+
run: |
6053
task clean
6154
task test-all

0 commit comments

Comments
 (0)