Skip to content

Commit 6b95ec0

Browse files
committed
chore: Standardize CI/CD and release workflows to run on ubuntu-latest and simplify wheel building.
1 parent d0c10e6 commit 6b95ec0

2 files changed

Lines changed: 9 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ jobs:
5252
# ============================================
5353
test:
5454
name: Python Tests (${{ matrix.python-version }})
55-
runs-on: ${{ matrix.os }}
55+
runs-on: ubuntu-latest
5656
needs: quality
5757
strategy:
5858
fail-fast: false
5959
matrix:
60-
os: [ubuntu-latest, macos-latest, windows-latest]
6160
python-version: ['3.9', '3.10', '3.11', '3.12']
6261

6362
steps:
@@ -96,7 +95,7 @@ jobs:
9695
pytest tests/ -v --cov=lnmp --cov-report=xml
9796
9897
- name: Upload Coverage
99-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
98+
if: matrix.python-version == '3.11'
10099
uses: codecov/codecov-action@v3
101100
with:
102101
file: ./coverage.xml

.github/workflows/release.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
# Job 1: Run Tests
1919
# ============================================
2020
test:
21-
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
22-
runs-on: ${{ matrix.os }}
21+
name: Test Python ${{ matrix.python-version }}
22+
runs-on: ubuntu-latest
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: [ubuntu-latest, macos-latest, windows-latest]
2726
python-version: ['3.9', '3.10', '3.11', '3.12']
2827

2928
steps:
@@ -65,12 +64,9 @@ jobs:
6564
# Job 2: Build Wheels
6665
# ============================================
6766
build-wheels:
68-
name: Build wheels on ${{ matrix.os }}
69-
runs-on: ${{ matrix.os }}
67+
name: Build wheels
68+
runs-on: ubuntu-latest
7069
needs: test
71-
strategy:
72-
matrix:
73-
os: [ubuntu-latest, macos-latest, windows-latest]
7470

7571
steps:
7672
- uses: actions/checkout@v4
@@ -86,29 +82,13 @@ jobs:
8682
- name: Install Maturin
8783
run: pip install maturin
8884

89-
- name: Build wheels (Linux)
90-
if: matrix.os == 'ubuntu-latest'
91-
run: |
92-
# Build for x86_64
93-
maturin build --release --target x86_64-unknown-linux-gnu --out dist
94-
# Build for aarch64 (requires cross-compilation setup)
95-
# maturin build --release --target aarch64-unknown-linux-gnu --out dist
96-
97-
- name: Build wheels (macOS)
98-
if: matrix.os == 'macos-latest'
99-
run: |
100-
# Build universal2 wheel (x86_64 + arm64)
101-
maturin build --release --target universal2-apple-darwin --out dist
102-
103-
- name: Build wheels (Windows)
104-
if: matrix.os == 'windows-latest'
105-
run: |
106-
maturin build --release --target x86_64-pc-windows-msvc --out dist
85+
- name: Build wheels
86+
run: maturin build --release --out dist
10787

10888
- name: Upload wheels
10989
uses: actions/upload-artifact@v4
11090
with:
111-
name: wheels-${{ matrix.os }}
91+
name: wheels
11292
path: dist/*.whl
11393

11494
# ============================================

0 commit comments

Comments
 (0)