Skip to content

Commit 3553b2e

Browse files
Merge pull request #255 from nyx-space/hotfix/py-release
Trying to allow re-release manually
2 parents 81367af + 83c5b25 commit 3553b2e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/python.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
target: ${{ matrix.target }}
3131
args: --release --out dist --find-interpreter -F python
3232
sccache: 'true'
33-
# manylinux: false
33+
rust-toolchain: 1.74
3434

3535
- name: Upload wheels
3636
uses: actions/upload-artifact@v3
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
target: ${{ matrix.target }}
7171
args: --release --out dist --find-interpreter -F python
72-
# sccache: 'true' # sscache seems to have broken on Windows on Github -- https://github.com/nyx-space/nyx/actions/runs/5156694943/jobs/9288035780
72+
rust-toolchain: 1.74
7373
- name: Upload wheels
7474
uses: actions/upload-artifact@v3
7575
with:
@@ -95,12 +95,17 @@ jobs:
9595
- uses: actions/setup-python@v4
9696
with:
9797
python-version: "3.11"
98+
99+
- name: Update cargo packages
100+
run: cargo update
101+
98102
- name: Build wheels
99103
uses: PyO3/maturin-action@v1
100104
with:
101105
target: ${{ matrix.target }}
102106
args: --release --out dist --find-interpreter -F python
103107
sccache: 'true'
108+
rust-toolchain: 1.74
104109

105110
- name: Upload wheels
106111
uses: actions/upload-artifact@v3
@@ -127,6 +132,7 @@ jobs:
127132
with:
128133
command: sdist
129134
args: --out dist
135+
rust-toolchain: 1.74
130136
- name: Upload sdist
131137
uses: actions/upload-artifact@v3
132138
with:
@@ -136,7 +142,7 @@ jobs:
136142
release:
137143
name: Release
138144
runs-on: ubuntu-latest
139-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
145+
if: github.ref_type == 'tag'
140146
needs: [linux, windows, macos, sdist]
141147
steps:
142148
- uses: actions/download-artifact@v3

.github/workflows/rust.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ jobs:
158158
steps:
159159
- name: Checkout sources
160160
uses: actions/checkout@v3
161-
162-
- name: release-plz
163-
uses: MarcoIeni/[email protected]
164161

165162
- name: Install stable toolchain
166163
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)