From 2f0d76bb72a3ead931c222b0bdcaf5e639bd76c1 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 30 Apr 2024 10:06:31 +0200 Subject: [PATCH] ci: enable version check --- .github/workflows/release.yaml | 39 ++++++++++++++-------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2c8ae520e..6cc9a7367 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,5 @@ name: Release on: - push: create: tags: - 'v*' @@ -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 }} @@ -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 @@ -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