Skip to content

Commit 6e1c52a

Browse files
committed
Fix build action
1 parent f4f5e2c commit 6e1c52a

File tree

2 files changed

+10
-30
lines changed

2 files changed

+10
-30
lines changed

.github/actions/set-version/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ runs:
77
if: "startsWith(github.ref, 'refs/tags/')"
88
run: |
99
sed -i'' -e "s/version = [\"]0.1.0[\"]/version = \"$GITHUB_REF_NAME\"/g" pyproject.toml
10+
sed -i'' -e "s/version = [\"]0.1.0[\"]/version = \"$GITHUB_REF_NAME\"/g" Cargo.toml

.github/workflows/publish.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,10 @@ permissions:
1111

1212
jobs:
1313
linux:
14-
runs-on: ${{ matrix.platform.runner }}
14+
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
platform:
18-
- runner: ubuntu-latest
19-
target: x86_64
20-
- runner: ubuntu-latest
21-
target: x86
22-
- runner: ubuntu-latest
23-
target: aarch64
24-
- runner: ubuntu-latest
25-
target: armv7
26-
- runner: ubuntu-latest
27-
target: s390x
28-
- runner: ubuntu-latest
29-
target: ppc64le
17+
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
3018
steps:
3119
- uses: actions/checkout@v3
3220
- uses: ./.github/actions/set-version
@@ -43,25 +31,20 @@ jobs:
4331
- name: Upload wheels
4432
uses: actions/upload-artifact@v4
4533
with:
46-
name: wheels-linux-${{ matrix.platform.target }}
34+
name: wheels-linux-${{ matrix.target }}
4735
path: dist
4836

4937
windows:
50-
runs-on: ${{ matrix.platform.runner }}
38+
runs-on: windows-latest
5139
strategy:
5240
matrix:
53-
platform:
54-
- runner: windows-latest
55-
target: x64
56-
- runner: windows-latest
57-
target: x86
41+
target: [x64, x86]
5842
steps:
5943
- uses: actions/checkout@v3
6044
- uses: ./.github/actions/set-version
6145
- uses: actions/setup-python@v4
6246
with:
6347
python-version: '3.10'
64-
architecture: ${{ matrix.target }}
6548
- name: Build wheels
6649
uses: PyO3/maturin-action@v1
6750
with:
@@ -71,18 +54,14 @@ jobs:
7154
- name: Upload wheels
7255
uses: actions/upload-artifact@v4
7356
with:
74-
name: wheels-windows-${{ matrix.platform.target }}
57+
name: wheels-windows-${{ matrix.target }}
7558
path: dist
7659

7760
macos:
78-
runs-on: ${{ matrix.platform.runner }}
61+
runs-on: macos-latest
7962
strategy:
8063
matrix:
81-
platform:
82-
- runner: macos-13
83-
target: x86_64
84-
- runner: macos-14
85-
target: aarch64
64+
target: [x86_64, aarch64]
8665
steps:
8766
- uses: actions/checkout@v3
8867
- uses: ./.github/actions/set-version
@@ -98,7 +77,7 @@ jobs:
9877
- name: Upload wheels
9978
uses: actions/upload-artifact@v4
10079
with:
101-
name: wheels-macos-${{ matrix.platform.target }}
80+
name: wheels-macos-${{ matrix.target }}
10281
path: dist
10382

10483
sdist:

0 commit comments

Comments
 (0)