Skip to content

Commit d368b44

Browse files
authored
Add meson version check (#1239)
Make sure the meson version is correctly set on release.
1 parent 4623da7 commit d368b44

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ on:
77
- "v*.*.*"
88

99
jobs:
10+
check_meson_version:
11+
runs-on: ubuntu-22.04
12+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
13+
steps:
14+
- uses: actions/checkout@v5
15+
- name: install meson and ninja
16+
run: |
17+
pip install --upgrade meson ninja
18+
- name: check meson version
19+
run: |
20+
MESON_VERSION=$(meson introspect meson.build --projectinfo | jq -r '.version')
21+
test "${{ github.ref_name }}" = "v${MESON_VERSION}"
22+
1023
linux:
1124
runs-on: ubuntu-22.04
1225
strategy:
@@ -125,7 +138,7 @@ jobs:
125138
path: build/qjs-wasi.wasm
126139

127140
upload-to-release:
128-
needs: [linux, macos, windows, wasi]
141+
needs: [linux, macos, windows, wasi, check_meson_version]
129142
runs-on: ubuntu-22.04
130143
steps:
131144
- name: get assets

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'quickjs-ng',
33
'c',
4-
version: '0.10.1',
4+
version: '0.11.0',
55
default_options: [
66
'c_std=gnu11,c11',
77
'warning_level=3',

0 commit comments

Comments
 (0)