Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,24 @@ permissions:
contents: read

jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify release tag matches Cargo.toml version
shell: bash
run: |
cargo_version=$(grep -m1 '^version = ' Cargo.toml | sed -E 's/^version = "(.*)"/\1/')
tag="${GITHUB_REF_NAME#v}"
echo "Cargo.toml version: $cargo_version"
echo "Release tag: $tag"
if [ "$cargo_version" != "$tag" ]; then
echo "::error::Release tag ($tag) does not match Cargo.toml version ($cargo_version). Bump Cargo.toml or fix the tag."
exit 1
fi

linux:
needs: check-version
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: true
Expand Down Expand Up @@ -49,6 +66,7 @@ jobs:
path: dist

musllinux:
needs: check-version
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: true
Expand Down Expand Up @@ -87,6 +105,7 @@ jobs:
path: dist

windows:
needs: check-version
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: true
Expand Down Expand Up @@ -121,6 +140,7 @@ jobs:
path: dist

macos:
needs: check-version
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: true
Expand Down Expand Up @@ -156,6 +176,7 @@ jobs:
path: dist

sdist:
needs: check-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
# will have compiled files and executables
debug/
target/
dist/
dist_base/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Virtual environment
# environment
.venv
.env
uv.lock
.claude
.cargo

# Shared object
**/*.so
Expand Down
Loading