-
Notifications
You must be signed in to change notification settings - Fork 180
PyPi Wheel Generation #3794
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
Draft
amd-juwillia
wants to merge
13
commits into
develop
Choose a base branch
from
juwillia/python-final
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,816
−1,040
Draft
PyPi Wheel Generation #3794
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9639199
Added Python Build Steps
amd-juwillia 8f00256
Fix amdsmi_init.py wrapper references
marifamd 87e9051
Fix DEB10 wheel build
marifamd 78e8a39
Added ManyLinux Workflow
amd-juwillia b0dc79f
Python-Site Packages changes
amd-juwillia 83dea0d
Added ManyLinux Python Scripts & CI Changes
amd-juwillia 618b3b1
Merge branch 'develop' into juwillia/python-final
amd-juwillia 139f7fa
Added Python Test Cases
amd-juwillia 3de6600
Merge branch 'develop' into juwillia/python-final
amd-juwillia 430a95c
Removed CLI Unit Tests
amd-juwillia 6d00c1a
Updated workflow
amd-juwillia 4b1c266
Added AMDSMI Build Python Scripts
amd-juwillia 20356db
Merge branch 'develop' into juwillia/python-final
amd-juwillia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| name: AMDSMI Manylinux Wheels | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [develop] | ||
| paths: | ||
| - 'projects/amdsmi/**' | ||
| - '.github/workflows/manylinux-build.yml' | ||
| push: | ||
| branches: [develop] | ||
| paths: | ||
| - 'projects/amdsmi/**' | ||
| - '.github/workflows/manylinux-build.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| rpm-wheels: | ||
| name: Build RPM Wheels (AlmaLinux 8 / manylinux_2_28) | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: quay.io/pypa/manylinux_2_28_x86_64 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
|
|
||
| - name: Mark workspace safe for git | ||
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
|
||
| - name: Build wheels (RPM) | ||
| run: | | ||
| /opt/python/cp38-cp38/bin/python3 \ | ||
| "$GITHUB_WORKSPACE/projects/amdsmi/tools/build_wheel_rpm.py" \ | ||
| --project-dir "$GITHUB_WORKSPACE/projects/amdsmi" \ | ||
| --output-dir "$GITHUB_WORKSPACE/wheels" \ | ||
| --os-variant AlmaLinux8 | ||
|
|
||
| - name: Verify wheels exist | ||
| run: | | ||
| ls -al "$GITHUB_WORKSPACE/wheels" | ||
| if ! ls "$GITHUB_WORKSPACE"/wheels/*.whl >/dev/null 2>&1; then | ||
| echo "No wheels found; failing." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Upload RPM wheels (by SHA) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: amdsmi-rpm-wheels-${{ github.sha }} | ||
| path: ${{ github.workspace }}/wheels/*.whl | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
|
|
||
| - name: Upload RPM wheels (downloadable) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: amdsmi-rpm-wheels | ||
| path: ${{ github.workspace }}/wheels/*.whl | ||
| if-no-files-found: warn | ||
| retention-days: 90 | ||
|
|
||
| debian-wheels: | ||
| name: Build Debian Wheels (Ubuntu 22.04) | ||
| runs-on: ubuntu-22.04 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
|
|
||
| - name: Install build prerequisites | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y git make gcc g++ cmake ninja-build libssl-dev libdrm-dev | ||
|
|
||
| - name: Build wheels (Debian) | ||
| run: | | ||
| python3 "$GITHUB_WORKSPACE/projects/amdsmi/tools/build_wheel_debian.py" \ | ||
| --project-dir "$GITHUB_WORKSPACE/projects/amdsmi" \ | ||
| --output-dir "$GITHUB_WORKSPACE/wheels" | ||
|
|
||
| - name: Verify wheels exist | ||
| run: | | ||
| ls -al "$GITHUB_WORKSPACE/wheels" | ||
| if ! ls "$GITHUB_WORKSPACE"/wheels/*.whl >/dev/null 2>&1; then | ||
| echo "No wheels found; failing." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Upload Debian wheels (by SHA) | ||
| uses: actions/upload-artifact@v4 | ||
amd-juwillia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| name: amdsmi-debian-wheels-${{ github.sha }} | ||
| path: ${{ github.workspace }}/wheels/*.whl | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
|
|
||
| - name: Upload Debian wheels (downloadable) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: amdsmi-debian-wheels | ||
| path: ${{ github.workspace }}/wheels/*.whl | ||
| if-no-files-found: warn | ||
| retention-days: 90 | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.