Skip to content

Commit

Permalink
Added macOS Clang issue test
Browse files Browse the repository at this point in the history
  • Loading branch information
PathogenDavid committed Nov 29, 2021
1 parent c623b33 commit 5972291
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/macos-clang-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: macOS Clang Issue
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: ['macos-10.15', 'macos-11']
runs-on: ${{matrix.os}}
name: Test ${{matrix.os}}
steps:
- name: Create test file
run: |
echo "#include <cmath>" > test.cpp
echo "int main() { return (int)INFINITE; }" >> test.cpp
- name: Print environment info
if: always()
run: |
echo "========== SDK Path"
xcrun --show-sdk-path
echo "========== Selected Xcode Path"
xcode-select --print-path
- name: Build using macOS Clang
if: always()
run: |
which clang
clang -v test.cpp
- name: Build using Homebrew Clang
if: always()
run: |
PATH="$(brew --prefix llvm)/bin:$PATH"
which clang
clang -v test.cpp
2 changes: 1 addition & 1 deletion .github/workflows/matrix-optional.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Matrix Optional Test
on: [push, workflow_dispatch]
on: [workflow_dispatch]
jobs:
test:
strategy:
Expand Down

0 comments on commit 5972291

Please sign in to comment.