From 72a70d5eab9529f57a26c374fdd0dc225324d99a Mon Sep 17 00:00:00 2001 From: RobertoRoos Date: Mon, 23 Sep 2024 08:27:58 +0200 Subject: [PATCH] Added package CI --- .github/workflows/packaging.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/packaging.yml diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml new file mode 100644 index 0000000..ef31333 --- /dev/null +++ b/.github/workflows/packaging.yml @@ -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