diff --git a/.github/workflows/macos-clang-issue.yml b/.github/workflows/macos-clang-issue.yml new file mode 100644 index 0000000..14c350d --- /dev/null +++ b/.github/workflows/macos-clang-issue.yml @@ -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 " > test.cpp + echo "int main() { return (int)INFINITY; }" >> 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 \ No newline at end of file diff --git a/.github/workflows/matrix-optional.yml b/.github/workflows/matrix-optional.yml index f7c4ec5..2901ee1 100644 --- a/.github/workflows/matrix-optional.yml +++ b/.github/workflows/matrix-optional.yml @@ -1,5 +1,5 @@ name: Matrix Optional Test -on: [push, workflow_dispatch] +on: [workflow_dispatch] jobs: test: strategy: