Skip to content

Commit 2dd0ae7

Browse files
[Github] Fix llvm project tests after default user changed in container
This patch adjusts the default user for llvm-project-tests when running on Linux. A recent change to the container made the default user non-root which prevents sccache from being installed as the command does not use sudo when trying to write to /usr/local/bin. For now, just run as root as we figure out a better solution to the problem.
1 parent 9184c42 commit 2dd0ae7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
runs-on: ${{ matrix.os }}
6161
container:
6262
image: ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}}
63+
# We run as the root user as when we need to install sccache, the action
64+
# currently does not support running the installation commands using sudo.
65+
options: --user root
6366
volumes:
6467
- /mnt/:/mnt/
6568
strategy:

0 commit comments

Comments
 (0)