Skip to content

Commit

Permalink
Added package CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoRoos committed Sep 23, 2024
1 parent 0ed8e6e commit 72a70d5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Test job to see how packaging looks like.
#

name: Build distributions

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
with:
submodules: "true"

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- run: |
python -m pip install -U pip
pip install build
- run: python -m build --wheel -vv
- if: matrix.os == 'ubuntu-latest'
run: python -m build --sdist -vv
# We only need a single source distribution

- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
path: dist

0 comments on commit 72a70d5

Please sign in to comment.