Skip to content

Commit

Permalink
ci: enable version check
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Apr 30, 2024
1 parent f6ed8bd commit 2f0d76b
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Release
on:
push:
create:
tags:
- 'v*'
Expand Down Expand Up @@ -43,14 +42,14 @@ jobs:
with:
toolchain: stable

#- name: Check version number
# shell: bash
# run: |
# set -ex
# version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
# if [ "${{ github.ref_name }}" != "v$version" ]; then
# exit 1
# fi
- name: Check version number
shell: bash
run: |
set -ex
version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
if [ "${{ github.ref_name }}" != "v$version" ]; then
exit 1
fi
- run: rustup target add ${{ matrix.target }}

Expand Down Expand Up @@ -114,14 +113,14 @@ jobs:
with:
toolchain: stable

#- name: Check version number
# shell: bash
# run: |
# set -ex
# version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
# if [ "${{ github.ref_name }}" != "v$version" ]; then
# exit 1
# fi
- name: Check version number
shell: bash
run: |
set -ex
version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
if [ "${{ github.ref_name }}" != "v$version" ]; then
exit 1
fi
- name: Install Python
uses: actions/setup-python@v4
Expand All @@ -131,12 +130,6 @@ jobs:
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
if: matrix.build == 'macos'

#- run: rustup toolchain install stable-i686-pc-windows-msvc
# if: matrix.build == 'windows'

#- run: rustup target add i686-pc-windows-msvc
# if: matrix.build == 'windows'

- name: Install Python dependencies
run: pip install -U setuptools wheel twine cibuildwheel platformdirs

Expand Down

0 comments on commit 2f0d76b

Please sign in to comment.