Skip to content

Commit 11ca24a

Browse files
committed
single conditional
1 parent 6267070 commit 11ca24a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,14 @@ jobs:
147147
run: |
148148
# macos-13 / gcc 7-9 compatibility workaround
149149
args=""
150-
if [ "$RUNNER_OS" == "macOS" ]; then
151-
if [[ $(sw_vers -productVersion) == 13* ]] && \
152-
[[ ${{ matrix.toolchain.compiler }} == "gcc" ]] && \
153-
[[ ${{ matrix.toolchain.version }} =~ ^(7|8|9)$ ]]
154-
then
155-
args="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
156-
fi
150+
if [[ "$RUNNER_OS" == "macOS" ]] && \
151+
[[ $(sw_vers -productVersion) == 13* ]] && \
152+
[[ ${{ matrix.toolchain.compiler }} == "gcc" ]] && \
153+
[[ ${{ matrix.toolchain.version }} =~ ^(7|8|9)$ ]]
154+
then
155+
args="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
157156
fi
158157
args="$args -o hw hw.f90"
159-
160158
${{ env.FC }} $args
161159
output=$(./hw '2>&1')
162160
[[ "$output" == *"hello world"* ]] && echo "$output" || (echo "Unexpected output: $output"; exit 1)

0 commit comments

Comments
 (0)