Skip to content

Commit

Permalink
Add github actions for windows builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernrennfanz committed Nov 7, 2023
1 parent 9303da0 commit 0708df8
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 73 deletions.
72 changes: 0 additions & 72 deletions .appveyor.yml

This file was deleted.

52 changes: 51 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
${PYLON_DOWNLOAD_URL_BASE_7_4}pylon_7.4.0.14900_linux_aarch64_setup.tar.gz
${PYLON_DOWNLOAD_URL_BASE}pylon_6.2.0.21487_armhf_setup.tar.gz
${PYLON_DOWNLOAD_URL_BASE}pylon_7_3_1_0011.dmg
${PYLON_DOWNLOAD_URL_BASE}basler_pylon_7_4_0_14900.exe
EOF
- uses: actions/cache@v3
id: cache
Expand Down Expand Up @@ -126,6 +127,54 @@ jobs:
python3 -m twine upload --non-interactive --skip-existing dist/*
build-windows:
needs: prepare
runs-on: windows-2019
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.6 - 3.11"

- uses: actions/download-artifact@v3
with:
name: pylon-installer
path: pylon-installer

- name: Setup pylon
run: |
cd pylon-installer
basler_pylon_7_4_0_14900.exe /quiet /install="GigE_Support;USB_Support;Camera_Link_Support;CoaXPress_Support;GenTL_Consumer_Support;CamEmu_Support;SDKs;DataProcessing_SDK"
shell: cmd

- name: Build wheels
uses: pypa/[email protected]
env:
PYLON_DEV_DIR: "C:\\Program Files\\Basler\\pylon 7\\Development"

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

- name: Upload Release Asset
if: needs.prepare.outputs.is_release_build == 'true'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./wheelhouse/*.whl

- name: Publish package to (Test)PyPI
if: needs.prepare.outputs.is_release_build == 'true'
run: |
sudo pip install twine
python -m twine upload --non-interactive --skip-existing wheelhouse/*
build-macos:
needs: prepare
runs-on: macos-11
Expand Down Expand Up @@ -181,7 +230,8 @@ jobs:
needs: [
prepare,
build-linux,
build-macos
build-macos,
build-windows
]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 0708df8

Please sign in to comment.