Skip to content

Commit ce48879

Browse files
Merge branch 'main' into pre-commit-ci-update-config
2 parents b6ce797 + 6d65218 commit ce48879

File tree

6 files changed

+244
-269
lines changed

6 files changed

+244
-269
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
tags:
99
- "*"
1010
pull_request:
11+
workflow_dispatch:
1112

1213
# Allow one concurrent deployment
1314
concurrency:
@@ -86,18 +87,14 @@ jobs:
8687
linux:
8788
name: build linux
8889
runs-on: ubuntu-latest
89-
if: "startsWith(github.ref, 'refs/tags/')"
90+
needs: [test]
9091
steps:
9192
- uses: actions/checkout@v3
92-
- uses: PyO3/maturin-action@v1.31.0
93+
- uses: PyO3/maturin-action@v1.40.1
9394
with:
9495
manylinux: auto
9596
command: build
9697
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"
10198
- name: Upload wheels
10299
uses: actions/upload-artifact@v2
103100
with:
@@ -107,10 +104,10 @@ jobs:
107104
windows:
108105
name: build windows
109106
runs-on: windows-latest
110-
if: "startsWith(github.ref, 'refs/tags/')"
107+
needs: [test]
111108
steps:
112109
- uses: actions/checkout@v3
113-
- uses: PyO3/maturin-action@v1.31.0
110+
- uses: PyO3/maturin-action@v1.40.1
114111
with:
115112
command: build
116113
args: --release -o dist --find-interpreter
@@ -123,10 +120,10 @@ jobs:
123120
macos:
124121
name: build macos
125122
runs-on: macos-latest
126-
if: "startsWith(github.ref, 'refs/tags/')"
123+
needs: [test]
127124
steps:
128125
- uses: actions/checkout@v3
129-
- uses: PyO3/maturin-action@v1.31.0
126+
- uses: PyO3/maturin-action@v1.40.1
130127
with:
131128
command: build
132129
args: --release -o dist --universal2 --find-interpreter
@@ -139,14 +136,14 @@ jobs:
139136
release:
140137
name: Release
141138
runs-on: ubuntu-latest
142-
if: "startsWith(github.ref, 'refs/tags/')"
139+
if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch')
143140
needs: [macos, windows, linux]
144141
steps:
145142
- uses: actions/download-artifact@v2
146143
with:
147144
name: wheels
148145
- name: Publish to PyPI
149-
uses: PyO3/maturin-action@v1.31.0
146+
uses: PyO3/maturin-action@v1.40.1
150147
env:
151148
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
152149
with:

0 commit comments

Comments
 (0)