Skip to content

Commit 96039c0

Browse files
committed
workflow/release.yaml: Make sure the meson version is correctly set on release
1 parent 9ddcdc8 commit 96039c0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
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

0 commit comments

Comments
 (0)