]> granicus.if.org Git - liblinear/commitdiff
build windows wheels automatically
authorSinacam <stinkingmadgod@gmail.com>
Sat, 12 Mar 2022 14:18:20 +0000 (22:18 +0800)
committerGitHub <noreply@github.com>
Sat, 12 Mar 2022 14:18:20 +0000 (22:18 +0800)
.github/workflows/wheel.yml [new file with mode: 0644]

diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml
new file mode 100644 (file)
index 0000000..d0ae597
--- /dev/null
@@ -0,0 +1,40 @@
+name: Build wheels
+
+on:
+  # on new tag
+  push:
+    tags:
+      - '*'
+
+  # manually trigger
+  workflow_dispatch:
+
+jobs:
+  build_wheels:
+    name: Build wheels on ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+         os: [windows-2019]
+
+    steps:
+      - uses: actions/checkout@v2
+
+      # Used to host cibuildwheel
+      - uses: actions/setup-python@v2
+
+      - name: Install cibuildwheel
+        run: python -m pip install cibuildwheel==2.3.1
+
+      - name: Build wheels
+        working-directory: ./python
+        run: python -m cibuildwheel --output-dir wheelhouse
+        env:
+          # don't build for PyPython and windows 32-bit
+          CIBW_SKIP: pp* *win32*
+
+      - name: Upload a Build Artifact
+        uses: actions/upload-artifact@v3.0.0
+        with:
+          path: ./python/wheelhouse
+