.github/workflows/compilers.yml: Specify a container running user as root. #4766
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 PR is based on the PR: #4750 . I updated the commit message, and container image URL and added the
id
command. This PR is a preparation for the coming new images.Note the new ruby/ruby-ci-image images are here.
ruby/ruby-ci-image#3
I tested this PR with both the current and coming container images too.
The newly added
id
command and currentmkdir build
command only work withworking-directory:
syntax. But doesn't work without theworking-directory:
syntax.For example, the
mkdir build
without theworking-directory:
syntax prints the following error. I am not sure why the error happen. Anyway, I added theworking-directory:
to the commands.https://github.com/junaruga/ruby/runs/3404442652?check_suite_focus=true#step:4:17