Skip to content

Commit

Permalink
Updated Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Laky-64 committed Feb 29, 2024
1 parent 9dc9b08 commit 0542dc4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,31 @@ jobs:
with:
submodules: recursive

- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v3
- name: Set up Python
uses: actions/setup-python@v5
if: matrix.cibw_archs != 'aarch64'
id: python
with:
platforms: arm64
python-version: "3.8 - 3.12"
update-environment: false

- name: Set up Python (ARM64)
if: matrix.cibw_archs == 'aarch64'
run: echo "Setting up Python 3.12 for ARM64"
outputs:
python-path: python3.12

- name: Install SetupTools
- name: Install Python Requirements
if: matrix.cibw_os_build == 'macosx_arm64'
run: |
pip install setuptools
pip install pipx
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build Debug Shared lib
if: matrix.cibw_archs != 'aarch64'
Expand Down Expand Up @@ -83,7 +98,7 @@ jobs:
if-no-files-found: error

- name: Build wheels
uses: pypa/[email protected]
uses: ./.github/actions/cibuildwheel
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: cibuildwheel
runs:
using: composite
steps:
- run: >
"${{ steps.python.outputs.python-path }}" -m pipx run
--spec '${{ github.action_path }}'
cibuildwheel .
--output-dir "wheelhouse"
2>&1
shell: bash
if: runner.os != 'Windows'
- run: >
if ($PSNativeCommandArgumentPassing) {
$PSNativeCommandArgumentPassing = 'Legacy'
};
& "${{ steps.python.outputs.python-path }}" -m pipx run
--spec "${{ github.action_path }}"
cibuildwheel .
--output-dir '"wheelhouse"'
shell: pwsh
if: runner.os == 'Windows'

0 comments on commit 0542dc4

Please sign in to comment.