Skip to content

Commit

Permalink
build wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Sep 10, 2024
1 parent 028cc58 commit 57214a7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
- name: Initialize Python
uses: actions/setup-python@v1
with:
python-version: "3.11"

Expand All @@ -116,7 +116,19 @@ jobs:
run: python -m pip install cibuildwheel

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse --platform linux --archs ${{ matrix.arch }}
run: python -m cibuildwheel --output-dir wheelhouse

- name: Build binary wheel and a source tarball
run: pipx run build --sdist

- name: copy artifacts to dist folder
run: cp ./wheelhouse/* ./dist/

- name: Upload Artifact for next job
uses: actions/upload-artifact@master
with:
name: logprep-build
path: dist

containerbuild:
strategy:
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/publish-release-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@ jobs:
- name: Initialize Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all

- name: Install cibuildwheel
run: python -m pip install cibuildwheel

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse

- name: Build binary wheel and a source tarball
run: pip wheel --no-deps --wheel-dir ./dist .
run: pipx run build --sdist

- name: copy artifacts to dist folder
run: cp ./wheelhouse/* ./dist/

- name: Upload Artifact for next job
uses: actions/upload-artifact@master
Expand Down

0 comments on commit 57214a7

Please sign in to comment.