From 2be84afea5167343e66be85b4cd7945533e4a7b5 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mon, 23 Aug 2021 21:16:31 +0200 Subject: .github/workflows/compilers.yml: Specify a container running user as root. Explicitly specify the root as a user to run tests in the containers. Coming new ruby/ruby-ci-image images are required to run the container as a regular user by default, while the root user is required to run the compilers.yml. Add `id` command to print the user info. Co-authored-by: fedor --- .github/workflows/compilers.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github/workflows/compilers.yml') diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index a5c1e72db2..2819a049bb 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -168,8 +168,12 @@ jobs: name: ${{ matrix.entry.name }} runs-on: ubuntu-latest - container: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }} + container: + image: ghcr.io/ruby/ruby-ci-image:${{ matrix.entry.container || 'clang-14' }} + options: --user root steps: + - run: id + working-directory: - run: mkdir build working-directory: - name: setenv -- cgit v1.2.3