summaryrefslogtreecommitdiff
path: root/.github/workflows/compilers.yml
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2021-08-23 21:16:31 +0200
committerJun Aruga <junaruga@users.noreply.github.com>2021-08-24 10:55:24 +0200
commit2be84afea5167343e66be85b4cd7945533e4a7b5 (patch)
tree9d9034579b362c4a72e3f29320ca74a1842f5e7c /.github/workflows/compilers.yml
parent22deda43cb98aa3cee48d0bebbff7c4db1d7652a (diff)
.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>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4766
Diffstat (limited to '.github/workflows/compilers.yml')
-rw-r--r--.github/workflows/compilers.yml6
1 files changed, 5 insertions, 1 deletions
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