@@ -86,18 +86,13 @@ jobs:
86
86
linux :
87
87
name : build linux
88
88
runs-on : ubuntu-latest
89
- if : " startsWith(github.ref, 'refs/tags/')"
90
89
steps :
91
90
- uses : actions/checkout@v3
92
- - uses : PyO3/maturin-action@v1.31.0
91
+ - uses : PyO3/maturin-action@v1.40.1
93
92
with :
94
93
manylinux : auto
95
94
command : build
96
95
args : --release --sdist -o dist --find-interpreter
97
- # Pin rust toolchain, so it won't install 1.65.0, otherwise get this error:
98
- # Attempting to include the sdist output tarball dist/egglog-0.1.0.tar.gz into itself! Check 'cargo package --list' output.
99
- # https://github.com/metadsl/egglog-python/actions/runs/3388178229/jobs/5629843303
100
- rust-toolchain : " 1.64.0"
101
96
- name : Upload wheels
102
97
uses : actions/upload-artifact@v2
103
98
with :
@@ -107,10 +102,9 @@ jobs:
107
102
windows :
108
103
name : build windows
109
104
runs-on : windows-latest
110
- if : " startsWith(github.ref, 'refs/tags/')"
111
105
steps :
112
106
- uses : actions/checkout@v3
113
- - uses : PyO3/maturin-action@v1.31.0
107
+ - uses : PyO3/maturin-action@v1.40.1
114
108
with :
115
109
command : build
116
110
args : --release -o dist --find-interpreter
@@ -123,10 +117,9 @@ jobs:
123
117
macos :
124
118
name : build macos
125
119
runs-on : macos-latest
126
- if : " startsWith(github.ref, 'refs/tags/')"
127
120
steps :
128
121
- uses : actions/checkout@v3
129
- - uses : PyO3/maturin-action@v1.31.0
122
+ - uses : PyO3/maturin-action@v1.40.1
130
123
with :
131
124
command : build
132
125
args : --release -o dist --universal2 --find-interpreter
@@ -139,14 +132,14 @@ jobs:
139
132
release :
140
133
name : Release
141
134
runs-on : ubuntu-latest
142
- if : " startsWith(github.ref, 'refs/tags/')"
135
+ if : startsWith(github.ref, 'refs/tags/')
143
136
needs : [macos, windows, linux]
144
137
steps :
145
138
- uses : actions/download-artifact@v2
146
139
with :
147
140
name : wheels
148
141
- name : Publish to PyPI
149
- uses : PyO3/maturin-action@v1.31.0
142
+ uses : PyO3/maturin-action@v1.40.1
150
143
env :
151
144
MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
152
145
with :
0 commit comments