Skip to content

Commit

Permalink
fix CI again.
Browse files Browse the repository at this point in the history
  • Loading branch information
unaidedelf8777 committed May 8, 2024
1 parent 090cd67 commit 6390c9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- master
tags:
- 'v*'
workflow_dispatch:
Expand All @@ -15,15 +14,18 @@ permissions:
jobs:
check-rust:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Check Rust Compiler and Cargo
run: |
rustc --version
cargo --version
build-and-test:

needs: check-rust
runs-on: ${{ matrix.platform.runner }}
if: startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
platform:
Expand Down Expand Up @@ -62,6 +64,7 @@ jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-and-test] # Ensure this job waits for others to finish
environment:
name: pypi
Expand Down

0 comments on commit 6390c9b

Please sign in to comment.