Skip to content

Commit d9d93dc

Browse files
committed
Added macOS Clang issue test
1 parent c623b33 commit d9d93dc

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: macOS Clang Issue
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: ['macos-10.15', 'macos-11']
9+
runs-on: ${{matrix.os}}
10+
name: Test ${{matrix.os}}
11+
steps:
12+
- name: Create test file
13+
run: |
14+
echo "#include <cmath>" > test.cpp
15+
echo "int main() { return (int)INFINITY; }" >> test.cpp
16+
- name: Print environment info
17+
if: always()
18+
run: |
19+
echo "========== SDK Path"
20+
xcrun --show-sdk-path
21+
echo "========== Selected Xcode Path"
22+
xcode-select --print-path
23+
- name: Build using macOS Clang
24+
if: always()
25+
run: |
26+
which clang
27+
clang -v test.cpp
28+
- name: Build using Homebrew Clang
29+
if: always()
30+
run: |
31+
PATH="$(brew --prefix llvm)/bin:$PATH"
32+
which clang
33+
clang -v test.cpp

.github/workflows/matrix-optional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Matrix Optional Test
2-
on: [push, workflow_dispatch]
2+
on: [workflow_dispatch]
33
jobs:
44
test:
55
strategy:

0 commit comments

Comments
 (0)