Skip to content

Commit

Permalink
update .github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SongminYu committed Dec 3, 2023
1 parent 3ca37fd commit 3c213d1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build-wheel

on:
push:
branches: [ "dist" ]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, macos-11]
steps:
- uses: actions/checkout@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v2

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

- name: Build wheels
env:
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
CIBW_BEFORE_BUILD: "pip install -r build_requirements.txt"
CIBW_ARCHS_WINDOWS: "AMD64"
CIBW_ARCHS_MACOS: "x86_64 arm64"
run: python -m cibuildwheel --output-dir wheelhouse

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tab2dict
name: run-test
on:
push:
branches: [ "main" ]
Expand Down

0 comments on commit 3c213d1

Please sign in to comment.