-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9101 from OpenMined/rasswanth/fix-arm64-install
Shift CD to setup python
- Loading branch information
Showing
16 changed files
with
130 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -42,32 +42,11 @@ jobs: | |
server_version: ${{ steps.release_metadata.outputs.server_version }} | ||
|
||
steps: | ||
# actions/setup-python doesn't yet support ARM | ||
- name: Setup Python on x64 | ||
if: ${{ !endsWith(matrix.runner, '-arm64') }} | ||
- name: Setup Python on ${{ matrix.runner }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
# Currently psutil package requires gcc to be installed on arm | ||
# for building psutil from source | ||
# as linux/aarch64 wheels not avaialble for psutil | ||
# We could remove once we have aarch64 wheels | ||
# https://github.com/giampaolo/psutil/issues/1972 | ||
- name: Install Metadata packages for arm64 | ||
if: ${{ endsWith(matrix.runner, '-arm64') }} | ||
run: | | ||
sudo apt update -y | ||
sudo apt install software-properties-common -y | ||
sudo apt install gcc curl -y | ||
sudo apt-get install python3-dev -y | ||
- name: Setup Python on arm64 | ||
if: ${{ endsWith(matrix.runner, '-arm64') }} | ||
uses: deadsnakes/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install Git | ||
run: | | ||
sudo apt-get update | ||
|
This file contains 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 |
---|---|---|
|
@@ -95,32 +95,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# actions/setup-python doesn't yet support ARM | ||
- name: Setup Python on x64 | ||
if: ${{ !endsWith(matrix.runner, '-arm64') }} | ||
- name: Setup Python on ${{ matrix.runner }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
# Currently psutil package requires gcc to be installed on arm | ||
# for building psutil from source | ||
# as linux/aarch64 wheels not avaialble for psutil | ||
# We could remove once we have aarch64 wheels | ||
# https://github.com/giampaolo/psutil/issues/1972 | ||
- name: Install Metadata packages for arm64 | ||
if: ${{ endsWith(matrix.runner, '-arm64') }} | ||
run: | | ||
sudo apt update -y | ||
sudo apt install software-properties-common -y | ||
sudo apt install gcc curl -y | ||
sudo apt-get install python3-dev -y | ||
- name: Setup Python on arm64 | ||
if: ${{ endsWith(matrix.runner, '-arm64') }} | ||
uses: deadsnakes/[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install Git | ||
run: | | ||
sudo apt-get update | ||
|
This file contains 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 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 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 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 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.