File tree Expand file tree Collapse file tree 3 files changed +76
-21
lines changed Expand file tree Collapse file tree 3 files changed +76
-21
lines changed Original file line number Diff line number Diff line change 2525jobs :
2626 check-clang-python :
2727 # Build libclang and then run the libclang Python binding's unit tests.
28+ # There is an issue running on "windows-2019".
29+ # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
2830 name : Build and run Python unit tests
2931 if : github.repository == 'llvm/llvm-project'
32+ runs-on : ubuntu-24.04
3033 strategy :
3134 fail-fast : false
3235 matrix :
3336 python-version : ["3.8", "3.13"]
34- uses : ./.github/workflows/llvm-project-tests.yml
35- with :
36- build_target : check-clang-python
37- projects : clang
38- # There is an issue running on "windows-2019".
39- # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
40- os_list : ' ["ubuntu-24.04"]'
41- python_version : ${{ matrix.python-version }}
37+ steps :
38+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
39+ - name : Setup Python
40+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
41+ with :
42+ python-version : ${{ matrix.python_version }}
43+ - name : Setup ccache
44+ uses : hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
45+ with :
46+ max-size : 2G
47+ key : spirv-ubuntu-24.04
48+ variant : sccache
49+ - name : Build and Test
50+ run : |
51+ mkdir build
52+ cmake -GNinja \
53+ -S llvm \
54+ -B build \
55+ -DCMAKE_BUILD_TYPE=Release \
56+ -DLLVM_ENABLE_ASSERTIONS=ON \
57+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
58+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
59+ -DLLVM_ENABLE_PROJECTS=clang
60+ ninja -C build check-clang-python
Original file line number Diff line number Diff line change 2424 check_spirv :
2525 if : github.repository_owner == 'llvm'
2626 name : Test MLIR SPIR-V
27- uses : ./.github/workflows/llvm-project-tests.yml
28- with :
29- build_target : check-mlir
30- projects : mlir
31- extra_cmake_args : ' -DLLVM_TARGETS_TO_BUILD="host" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
32- os_list : ' ["ubuntu-24.04"]'
27+ runs-on : ubuntu-24.04
28+ container :
29+ image : ghcr.io/llvm/ci-ubuntu-24.04:latest
30+ steps :
31+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+ - name : Setup ccache
33+ uses : hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
34+ with :
35+ max-size : 2G
36+ key : spirv-mlir-ubuntu-24.04
37+ variant : sccache
38+ - name : Build and Test
39+ run : |
40+ mkdir build
41+ cmake -GNinja \
42+ -S llvm \
43+ -B build \
44+ -DCMAKE_BUILD_TYPE=Release \
45+ -DLLVM_ENABLE_ASSERTIONS=ON \
46+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
47+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
48+ -DLLVM_TARGETS_TO_BUILD="host" \
49+ -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON \
50+ -DLLVM_ENABLE_PROJECTS=mlir
51+ ninja -C build check-mlir
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ permissions:
44 contents : read
55
66on :
7- workflow_dispatch :
87 pull_request :
98 paths :
109 - ' llvm/lib/Target/SPIRV/**'
2120 check_spirv :
2221 if : github.repository_owner == 'llvm'
2322 name : Test SPIR-V
24- uses : ./.github/workflows/llvm-project-tests.yml
25- with :
26- build_target : check-llvm-codegen-spirv
27- projects :
28- extra_cmake_args : ' -DLLVM_TARGETS_TO_BUILD="SPIRV" -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON'
29- os_list : ' ["ubuntu-24.04"]'
23+ runs-on : ubuntu-24.04
24+ container :
25+ image : ghcr.io/llvm/ci-ubuntu-24.04:latest
26+ steps :
27+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+ - name : Setup ccache
29+ uses : hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
30+ with :
31+ max-size : 2G
32+ key : spirv-ubuntu-24.04
33+ variant : sccache
34+ - name : Build and Test
35+ run : |
36+ mkdir build
37+ cmake -GNinja \
38+ -S llvm \
39+ -B build \
40+ -DCMAKE_BUILD_TYPE=Release \
41+ -DLLVM_ENABLE_ASSERTIONS=ON \
42+ -DCMAKE_C_COMPILER_LAUNCHER=sccache \
43+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
44+ -DLLVM_TARGETS_TO_BUILD="SPIRV" \
45+ -DLLVM_INCLUDE_SPIRV_TOOLS_TESTS=ON
46+ ninja -C build check-llvm-codegen-spirv
You can’t perform that action at this time.
0 commit comments