File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 58
58
lit-tests :
59
59
name : Lit Tests
60
60
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/
61
65
strategy :
62
66
fail-fast : false
63
67
matrix :
77
81
with :
78
82
python-version : ${{ inputs.python_version }}
79
83
- name : Install Ninja
84
+ if : runner.os != 'Linux'
80
85
uses : llvm/actions/install-ninja@main
81
86
# actions/checkout deletes any existing files in the new git directory,
82
87
# so this needs to either run before ccache-action or it has to use
@@ -108,8 +113,8 @@ jobs:
108
113
run : |
109
114
if [ "${{ runner.os }}" == "Linux" ]; then
110
115
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"
113
118
else
114
119
builddir="$(pwd)"/build
115
120
fi
@@ -123,6 +128,7 @@ jobs:
123
128
-DLLDB_INCLUDE_TESTS=OFF \
124
129
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
125
130
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
131
+ $extra_cmake_args \
126
132
${{ inputs.extra_cmake_args }}
127
133
ninja -C "$builddir" '${{ inputs.build_target }}'
128
134
You can’t perform that action at this time.
0 commit comments