Skip to content

Commit 9b7994f

Browse files
Try upgrading maturin action and always running build
1 parent 4288b87 commit 9b7994f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,13 @@ jobs:
8686
linux:
8787
name: build linux
8888
runs-on: ubuntu-latest
89-
if: "startsWith(github.ref, 'refs/tags/')"
9089
steps:
9190
- uses: actions/checkout@v3
92-
- uses: PyO3/maturin-action@v1.31.0
91+
- uses: PyO3/maturin-action@v1.40.1
9392
with:
9493
manylinux: auto
9594
command: build
9695
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"
10196
- name: Upload wheels
10297
uses: actions/upload-artifact@v2
10398
with:
@@ -107,10 +102,9 @@ jobs:
107102
windows:
108103
name: build windows
109104
runs-on: windows-latest
110-
if: "startsWith(github.ref, 'refs/tags/')"
111105
steps:
112106
- uses: actions/checkout@v3
113-
- uses: PyO3/maturin-action@v1.31.0
107+
- uses: PyO3/maturin-action@v1.40.1
114108
with:
115109
command: build
116110
args: --release -o dist --find-interpreter
@@ -123,10 +117,9 @@ jobs:
123117
macos:
124118
name: build macos
125119
runs-on: macos-latest
126-
if: "startsWith(github.ref, 'refs/tags/')"
127120
steps:
128121
- uses: actions/checkout@v3
129-
- uses: PyO3/maturin-action@v1.31.0
122+
- uses: PyO3/maturin-action@v1.40.1
130123
with:
131124
command: build
132125
args: --release -o dist --universal2 --find-interpreter
@@ -139,14 +132,14 @@ jobs:
139132
release:
140133
name: Release
141134
runs-on: ubuntu-latest
142-
if: "startsWith(github.ref, 'refs/tags/')"
135+
if: startsWith(github.ref, 'refs/tags/')
143136
needs: [macos, windows, linux]
144137
steps:
145138
- uses: actions/download-artifact@v2
146139
with:
147140
name: wheels
148141
- name: Publish to PyPI
149-
uses: PyO3/maturin-action@v1.31.0
142+
uses: PyO3/maturin-action@v1.40.1
150143
env:
151144
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
152145
with:

0 commit comments

Comments
 (0)