Skip to content

Commit e9a32ba

Browse files
authored
[python_package.yml] Adding ubuntu-22.04-arm now in public preview.
1 parent 09652b9 commit e9a32ba

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/python_package.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
python-version: ['3.10', '3.11', '3.12', '3.13']
16-
os: ['ubuntu-22.04', 'macos-latest', 'windows-latest', 'linux-arm64']
16+
os: ['ubuntu-22.04-arm', 'ubuntu-22.04', 'macos-latest', 'windows-latest']
1717
experimental: [false]
1818
# exclude:
1919
# excludes python-versions not available in specific OSs. Usually needed when new versions are released.
@@ -27,18 +27,11 @@ jobs:
2727
git submodule update --init --recursive
2828
git fetch --prune --unshallow
2929
- name: Set up Python ${{ matrix.python-version }} (Github Hosted VMs)
30-
if: matrix.os != 'linux-arm64'
3130
uses: actions/setup-python@v2
3231
with:
3332
python-version: ${{ matrix.python-version }}
34-
- name: Set up Python ${{ matrix.python-version }} (Self Hosted Vms)
35-
if: matrix.os == 'linux-arm64'
36-
run: |
37-
python${{ matrix.python-version }} -m venv venv${{ matrix.python-version }}
38-
echo "${{github.workspace}}/venv${{matrix.python-version}}/bin/" >> $GITHUB_PATH
39-
sed -i'' -e 's/-j2/-j8/g' setup.py
4033
- name: Install compilation dependencies [Ubuntu/C++]
41-
if: matrix.os == 'ubuntu-22.04'
34+
if: startsWith (matrix.os, 'ubuntu-22.04')
4235
run: |
4336
sudo apt install libeigen3-dev
4437
- name: Install compilation dependencies [MacOS/C++]
@@ -93,13 +86,6 @@ jobs:
9386
run: |
9487
python tests/print_platform_info.py
9588
python -m pip install @(join-path "dist" (get-childitem -path dist -name *.whl))
96-
- name: Remove old quadprog folder (self-hosted)
97-
if: matrix.os == 'linux-arm64'
98-
run: |
99-
cd tests
100-
python -m pip uninstall quadprog -y
101-
rm -rf quadprog
102-
cd ..
10389
- name: Install Test Pre-requisites (quadprog always manual)
10490
run: |
10591
cd tests
@@ -122,15 +108,9 @@ jobs:
122108
python DQ_Kinematics_static_jacobian_derivative_tests.py
123109
cd ..
124110
- name: Rename wheel (Ubuntu Only)
125-
if: matrix.os == 'ubuntu-22.04'
111+
if: startsWith (matrix.os, 'ubuntu-22.04')
126112
run: |
127113
sudo apt install rename
128-
cd dist
129-
rename 's/linux/manylinux1/' *
130-
cd ..
131-
- name: Rename wheel (Self Hosted [linux-arm64] Only)
132-
if: matrix.os == 'linux-arm64'
133-
run: |
134114
cd dist
135115
rename 's/linux/manylinux2014/' *
136116
cd ..

0 commit comments

Comments
 (0)