feat(ppc64le): build runtime datascience image on ppc64le #2298
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
"name": "Build Notebooks (pr)" | |
"on": | |
"pull_request": | |
"paths-ignore": | |
# Don't build images if the only thing that changed is image digests in manifests | |
- manifests/base/params-latest.env | |
- manifests/base/params.env | |
# In fact, skip the build if there are only changes in manifests and nowhere else | |
- manifests/** | |
permissions: | |
contents: read | |
packages: read | |
pull-requests: read | |
concurrency: | |
group: ${{ format('build-notebooks-pr-{0}', github.event.pull_request.number) }} | |
cancel-in-progress: true | |
jobs: | |
gen: | |
name: Generate job matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.gen.outputs.matrix }} | |
has_jobs: ${{ steps.gen.outputs.has_jobs }} | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-go@v5 | |
with: | |
cache-dependency-path: "**/*.sum" | |
- name: Determine targets to build based on changed files | |
run: | | |
set -x | |
git fetch --no-tags origin 'pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}' | |
git fetch --no-tags origin '+refs/heads/${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }}' | |
python3 ci/cached-builds/gen_gha_matrix_jobs.py \ | |
--from-ref 'origin/${{ github.event.pull_request.base.ref }}' \ | |
--to-ref '${{ github.event.pull_request.head.ref }}' \ | |
--rhel-images exclude \ | |
--s390x-images include | |
id: gen | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
build: | |
needs: ["gen"] | |
strategy: | |
fail-fast: false | |
matrix: "${{ fromJson(needs.gen.outputs.matrix) }}" | |
uses: ./.github/workflows/build-notebooks-TEMPLATE.yaml | |
if: ${{ fromJson(needs.gen.outputs.has_jobs) }} | |
with: | |
target: "${{ matrix.target }}" | |
python: "${{ matrix.python }}" | |
github: "${{ toJSON(github) }}" | |
platform: "${{ matrix.platform }}" | |
subscription: "${{ matrix.subscription }}" | |
secrets: inherit |