Skip to content

Commit

Permalink
use target instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin authored Aug 7, 2024
1 parent d341004 commit af894c6
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/build-python-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,44 +16,37 @@ jobs:
fail-fast: false
matrix:
_:
- name: x86_64-unknown-linux-gnu
- target: x86_64-unknown-linux-gnu
runs_on: ubuntu-latest
target: x86_64

- name: aarch64-unknown-linux-gnu
- target: aarch64-unknown-linux-gnu
runs_on: ubuntu-latest
target: aarch64
env:
# Workaround ring 0.17 build issue
# see https://github.com/briansmith/ring/issues/1728#issuecomment-1758180655
# see https://github.com/astral-sh/uv/pull/3444
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"

- name: x86_64-unknown-linux-musl
- target: x86_64-unknown-linux-musl
runs_on: ubuntu-latest
target: x86_64
# see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
manylinux: musllinux_1_1

- name: aarch64-unknown-linux-musl
- target: aarch64-unknown-linux-musl
runs_on: ubuntu-latest
target: aarch64
# see https://github.com/astral-sh/uv/blob/9bb55c4ac0582e05d1a7a5bbd99cc7b2c82f1847/.github/workflows/build-binaries.yml#L594
manylinux: musllinux_1_1

- name: x86_64-apple-darwin
- target: x86_64-apple-darwin
runs_on: macos-latest
target: x86_64

- name: aarch64-apple-darwin
- target: aarch64-apple-darwin
runs_on: macos-latest
target: aarch64

- name: x86_64-pc-windows-msvc
- target: x86_64-pc-windows-msvc
runs_on: windows-latest
target: x64

name: ${{ matrix._.name }}
name: ${{ matrix._.target }}
runs-on: ${{ matrix._.runs_on }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -85,6 +78,6 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix._.name }}
name: wheels-${{ matrix._.target }}
path: engine/language_client_python/dist
if-no-files-found: error

0 comments on commit af894c6

Please sign in to comment.