CI: Add GitHub Actions ppc64le/s390x cases #946
Merged
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.
Cc: @hsbt
Hello,
I am trying to add GitHub Actions ppc64le/s390x cases to this repository using the services provided by IBM project https://github.com/IBM/actionspz. This PR is working in progress. There are 2 commits. The 1st commit is temporary commit just to remove the unused job for my testing and debugging. I will revert this commit later. The 2nd commit is the main commit.
As a context, Ruby project submitted the request of using this CI by the ticket IBM/actionspz#4, and the ruby/openssl is one of the repositories which we want to add the cases according to @hsbt. So far we applied the cases to the following ruby/* repositories.
https://github.com/ruby/psych/blob/1d9c52706b2572a37248a1bdf3f83cc6ef07fd83/.github/workflows/test.yml#L64-L86
I needed to create the new job
test-ibm
in the.github/workflows/test.yml
, because this CI (IBM's self-hosting CI) only works in the registered repositories, in our case, ruby/* repositories. The CI doesn't work in fork repositories. So, I needed to use theif: github.repository == 'ruby/openssl'
syntax due to that.I am using YAML's anchors and aliases feature to prevent duplicated logic in steps between
test
andtest-ibm
jobs. The GitHub Actions document is below.https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations#yaml-anchors-and-aliases
As I cannot test the GitHub Actions ppc64le/s390x cases in my fork repository. Let me test the cases by sending this PR.
What do you think?