-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
CI: Add native ppc64le
CI job using GitHub Actions
#29212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Native ppc64le Linux Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- maintenance/** | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
native_ppc64le: | ||
# This job runs only in the main NumPy repository. | ||
# It requires a native ppc64le GHA runner, which is not available on forks. | ||
# For more details, see: https://github.com/numpy/numpy/issues/29125 | ||
if: github.repository == 'numpy/numpy' | ||
runs-on: ubuntu-24.04-ppc64le | ||
|
||
name: "Native PPC64LE" | ||
steps: | ||
|
||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
submodules: recursive | ||
fetch-tags: true | ||
persist-credentials: false | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y python3 python3-pip python3-dev ninja-build gfortran \ | ||
build-essential libopenblas-dev liblapack-dev pkg-config | ||
sandeepgupta12 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip install --upgrade pip | ||
pip install -r requirements/build_requirements.txt | ||
pip install pytest pytest-xdist hypothesis typing_extensions pytest-timeout spin | ||
echo "/home/runner/.local/bin" >> $GITHUB_PATH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. used to add ~/.local/bin to the system PATH for subsequent steps in the GitHub Actions workflow, so that installed tools (like spin) can be found and executed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah okay. That should be happening only if Fine to leave this as is until the self-hosted runner is up, so we have a log to look at for the final tweaks. |
||
|
||
- name: Meson Build | ||
run: | | ||
spin build --clean -- -Dallow-noblas=false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you remove |
||
|
||
- name: Meson Log | ||
if: always() | ||
run: cat build/meson-logs/meson-log.txt | ||
|
||
- name: Run Tests | ||
run: | | ||
export F90=$(which gfortran) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't doing anything, please remove. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated as suggested, thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unresolved this comment, since it wasn't actually addressed. |
||
spin test -- --timeout=60 --durations=10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can you remove this blank line?