.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 <fedor@cirruslabs.org>
This commit is contained in:
Jun Aruga 2021-08-23 21:16:31 +02:00 committed by Jun Aruga
parent 22deda43cb
commit 2be84afea5
Notes: git 2021-08-24 17:55:46 +09:00

View File

@ -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