Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/libcxx-problem-matchers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"problemMatcher": [
{
"owner": "clang",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s+(error|warning):\\s+(.+)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
},
{
"owner": "lit",
"severity": "error",
"pattern": [
{
"regexp": "^\\s*(FAIL|XPASS):\\s+([^\\s]+)\\s+::\\s+(.+?)\\s+\\(\\d+\\s+of\\s+\\d+\\)$",
"message": 2
}
]
}
]
}
28 changes: 25 additions & 3 deletions .github/workflows/libcxx-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,17 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ${{ matrix.config }}.${{ matrix.cxx }}
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
run: |
echo "::add-matcher::.github/libcxx-problem-matchers.json"
libcxx/utils/ci/run-buildbot ${{ matrix.config }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
- if: always()
name: Disable Problem Matchers
run: |
echo "::remove-matcher owner=lit::"
echo "::remove-matcher owner=clang::"
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
if: always()
with:
Expand Down Expand Up @@ -103,10 +110,17 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ${{ matrix.config }}
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
run: |
echo "::add-matcher::.github/libcxx-problem-matchers.json"
libcxx/utils/ci/run-buildbot ${{ matrix.config }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
- if: always()
name: Disable Problem Matchers
run: |
echo "::remove-matcher owner=lit::"
echo "::remove-matcher owner=clang::"
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
if: always() # Upload artifacts even if the build or test suite fails
with:
Expand Down Expand Up @@ -167,10 +181,17 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ${{ matrix.config }}
run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
run: |
echo "::add-matcher::.github/libcxx-problem-matchers.json"
libcxx/utils/ci/run-buildbot ${{ matrix.config }}
env:
CC: clang-21
CXX: clang++-21
- if: always()
name: Disable Problem Matchers
run: |
echo "::remove-matcher owner=lit::"
echo "::remove-matcher owner=clang::"
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
if: always()
with:
Expand Down Expand Up @@ -221,6 +242,7 @@ jobs:
- uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67 # v6
- name: Build and test
run: |
echo "::add-matcher::.github/libcxx-problem-matchers.json"
python3 -m venv .venv
source .venv/bin/activate
python -m pip install psutil
Expand Down
4 changes: 4 additions & 0 deletions libcxx/test/broken-on-purpose-1.pass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

DoesNotExist bar() {

}
Loading