File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5858 lit-tests :
5959 name : Lit Tests
6060 runs-on : ${{ matrix.os }}
61+ container :
62+ image : ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}}
63+ volumes :
64+ - /mnt/:/mnt/
6165 strategy :
6266 fail-fast : false
6367 matrix :
7781 with :
7882 python-version : ${{ inputs.python_version }}
7983 - name : Install Ninja
84+ if : runner.os != 'Linux'
8085 uses : llvm/actions/install-ninja@main
8186 # actions/checkout deletes any existing files in the new git directory,
8287 # so this needs to either run before ccache-action or it has to use
@@ -108,8 +113,8 @@ jobs:
108113 run : |
109114 if [ "${{ runner.os }}" == "Linux" ]; then
110115 builddir="/mnt/build/"
111- sudo mkdir -p $builddir
112- sudo chown `whoami`:`whoami` $builddir
116+ mkdir -p $builddir
117+ extra_cmake_args="-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
113118 else
114119 builddir="$(pwd)"/build
115120 fi
@@ -123,6 +128,7 @@ jobs:
123128 -DLLDB_INCLUDE_TESTS=OFF \
124129 -DCMAKE_C_COMPILER_LAUNCHER=sccache \
125130 -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
131+ $extra_cmake_args \
126132 ${{ inputs.extra_cmake_args }}
127133 ninja -C "$builddir" '${{ inputs.build_target }}'
128134
You can’t perform that action at this time.
0 commit comments