From 2dd0ae7ae6fc546d24c22e12034b95fd91006185 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Wed, 8 Jan 2025 03:18:44 +0000 Subject: [PATCH] [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. --- .github/workflows/llvm-project-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml index 95a3890c0d2dc..e6b2db198d8d2 100644 --- a/.github/workflows/llvm-project-tests.yml +++ b/.github/workflows/llvm-project-tests.yml @@ -60,6 +60,9 @@ jobs: runs-on: ${{ matrix.os }} container: image: ${{(startsWith(matrix.os, 'ubuntu') && 'ghcr.io/llvm/ci-ubuntu-22.04:latest') || null}} + # We run as the root user as when we need to install sccache, the action + # currently does not support running the installation commands using sudo. + options: --user root volumes: - /mnt/:/mnt/ strategy: