From f6f6e2b11cc3aee03ec419a2191a75290cd13920 Mon Sep 17 00:00:00 2001 From: MintoDA1 <51412913+MintoDA1@users.noreply.github.com> Date: Thu, 7 Sep 2023 16:07:27 -0400 Subject: [PATCH] Updated the build_wheels action file --- .github/workflows/build_wheels.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 9b7a32427..3e4330b10 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -1,6 +1,6 @@ name: swiftest -on: [push] +on: push jobs: build_wheels: @@ -15,6 +15,9 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.15.0 + env: + CIBW_ARCHS_MACOS: x86_64 arm64 + CIBW_ARCHS_LINUX: x86_64 aarch64 with: package-dir: . output-dir: wheelhouse @@ -22,4 +25,18 @@ jobs: - uses: actions/upload-artifact@v3 with: - path: ./wheelhouse/*.whl \ No newline at end of file + path: ./wheelhouse/*.whl + + + build_sdist: + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build sdist + run: pipx run build --sdist + + - uses: actions/upload-artifact@v3 + with: + path: dist/*.tar.gz \ No newline at end of file