Skip to content

Commit bccda98

Browse files
committed
Only package graph_mate if it is being released
1 parent fdffcf1 commit bccda98

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/rust.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
macos-x86_64:
185185
name: Package graph_mate for Mac x86_64
186186
runs-on: macos-latest
187-
if: "startsWith(github.ref, 'refs/tags/')"
187+
if: startsWith(github.ref, 'refs/tags/') && inputs.crate == 'graph_mate'
188188
needs: test_python
189189
steps:
190190
- name: Checkout code
@@ -219,7 +219,7 @@ jobs:
219219
macos-universal:
220220
name: Package graph_mate for Mac Universal
221221
runs-on: macos-latest
222-
if: "startsWith(github.ref, 'refs/tags/')"
222+
if: startsWith(github.ref, 'refs/tags/') && inputs.crate == 'graph_mate'
223223
needs: test_python
224224
steps:
225225
- name: Checkout code
@@ -254,7 +254,7 @@ jobs:
254254
windows:
255255
name: Package graph_mate for Windows
256256
runs-on: windows-latest
257-
if: "startsWith(github.ref, 'refs/tags/')"
257+
if: startsWith(github.ref, 'refs/tags/') && inputs.crate == 'graph_mate'
258258
needs: test_python
259259
strategy:
260260
matrix:
@@ -293,7 +293,7 @@ jobs:
293293
linux:
294294
name: Package graph_mate for Linux
295295
runs-on: ubuntu-latest
296-
if: "startsWith(github.ref, 'refs/tags/')"
296+
if: startsWith(github.ref, 'refs/tags/') && inputs.crate == 'graph_mate'
297297
needs: test_python
298298
strategy:
299299
matrix:
@@ -341,10 +341,6 @@ jobs:
341341
- fmt
342342
- clippy
343343
- test_python
344-
- macos-universal
345-
- macos-x86_64
346-
- windows
347-
- linux
348344
steps:
349345
- name: Checkout code
350346
uses: actions/checkout@v4

0 commit comments

Comments
 (0)