From 494a9a5a98ca880962a4d78fbcfdcec13f038897 Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Thu, 19 May 2022 14:59:43 -0700 Subject: [PATCH] Add build GH workflow for building wheels (#50) --- .github/requirements.txt | 1 + .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/requirements.txt create mode 100644 .github/workflows/build.yml diff --git a/.github/requirements.txt b/.github/requirements.txt new file mode 100644 index 00000000..2309722a --- /dev/null +++ b/.github/requirements.txt @@ -0,0 +1 @@ +wheel diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..4dc9450b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: Build JPY wheels + +on: push + +jobs: + bdist-wheel: + runs-on: ${{ matrix.info.machine }} + strategy: + fail-fast: false + matrix: + info: + - { machine: 'ubuntu-18.04', python: '3.4', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.5', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.6', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.7', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.8', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.9', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'ubuntu-20.04', python: '3.10', pythonArchitecture: 'x64', arch: 'amd64' } + # Can't get 3.4 win build + #- { machine: 'windows-2016', python: '3.4', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2019', python: '3.5', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2022', python: '3.6', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2022', python: '3.7', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2022', python: '3.8', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2022', python: '3.9', pythonArchitecture: 'x64', arch: 'amd64' } + - { machine: 'windows-2022', python: '3.10', pythonArchitecture: 'x64', arch: 'amd64' } + # macos-11 gcc errors + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.info.python }} + architecture: ${{ matrix.info.pythonArchitecture }} + + - uses: actions/setup-java@v3 + id: setup-java + with: + distribution: 'temurin' + java-version: '8' + + - run: pip install -r .github/requirements.txt + + - run: python setup.py bdist_wheel + + - uses: actions/upload-artifact@v3 + with: + name: build-${{ matrix.info.python }}-${{ matrix.info.machine }}-${{ matrix.info.arch }} + path: dist/*.whl + retention-days: 1