diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73d5c2281..3280da1ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,19 @@ on: - "v*.*.*" jobs: + check_meson_version: + runs-on: ubuntu-22.04 + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + steps: + - uses: actions/checkout@v5 + - name: install meson and ninja + run: | + pip install --upgrade meson ninja + - name: check meson version + run: | + MESON_VERSION=$(meson introspect meson.build --projectinfo | jq -r '.version') + test "${{ github.ref_name }}" = "v${MESON_VERSION}" + linux: runs-on: ubuntu-22.04 strategy: @@ -125,7 +138,7 @@ jobs: path: build/qjs-wasi.wasm upload-to-release: - needs: [linux, macos, windows, wasi] + needs: [linux, macos, windows, wasi, check_meson_version] runs-on: ubuntu-22.04 steps: - name: get assets diff --git a/meson.build b/meson.build index 88cbc7ca9..1c178513c 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'quickjs-ng', 'c', - version: '0.10.1', + version: '0.11.0', default_options: [ 'c_std=gnu11,c11', 'warning_level=3',