Skip to content

Commit

Permalink
Build single py3 per platform instead of interpreter-specific wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Sep 13, 2023
1 parent dd8cecf commit 67ed4cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release

on:
push:
branches:
- 'feat/generalize-wheel-compatibility-tags'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Only run for full release tags

Expand All @@ -26,24 +28,22 @@ jobs:
fail-fast: false
matrix:
os: [ "windows-latest", "ubuntu-latest", "macos-latest" ]
python-version: [ "3.9", "3.10", "3.11" ]
include:
- os: ubuntu-latest
python-version: '3.11'
sdist: true
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"

- name: Set up Fortran
uses: awvwgk/setup-fortran@v1

- name: Install build frontend
run: python -m pip install --upgrade pip build
run: python -m pip install --upgrade pip build wheel

- name: Retrieve 6S source archives
uses: actions/download-artifact@v3
Expand All @@ -56,6 +56,9 @@ jobs:
env:
SIXS_ARCHIVE_DIR: 6s-archives

- name: Configure wheel platform compatibility tags
run: python3 -m wheel --remove --python-tag=py3 --abi-tag=none ./dist/*.whl

- name: Build sdist
if: ${{ matrix.sdist }}
run: python -I -m build --sdist
Expand All @@ -69,7 +72,7 @@ jobs:

publish:
needs: build
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down

0 comments on commit 67ed4cf

Please sign in to comment.