Skip to content

Commit 382f39e

Browse files
committed
Add version.h and update versioning documentation for embedded platforms
1 parent d8e354f commit 382f39e

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

core/version.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (C) 2019 Intel Corporation. All rights reserved.
3+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
*/
5+
6+
/*
7+
* version.h.in is a template file. version.h is a generated file.
8+
* Please do not edit both files directly.
9+
*
10+
* Any changes to the version should be done in build-scripts/version.cmake.
11+
*
12+
* Continue to maintain the version.h for certain embedded platforms.
13+
*/
14+
15+
#ifndef _WAMR_VERSION_H_
16+
#define _WAMR_VERSION_H_
17+
18+
/* clang-format off */
19+
#define WAMR_VERSION_MAJOR 2
20+
#define WAMR_VERSION_MINOR 2
21+
#define WAMR_VERSION_PATCH 0
22+
/* clang-format on */
23+
24+
#endif

core/version.h.in

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Please do not edit both files directly.
99
*
1010
* Any changes to the version should be done in the version.cmake file.
11+
*
12+
* Continue to maintain the version.h for certain embedded platforms.
1113
*/
1214

1315
#ifndef _WAMR_VERSION_H_

doc/stability_release.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Once a release decision has been made:
2323

2424
- Create a PR that:
2525
1. Modifies *build-scripts/version.cmake*.
26-
2. Updates *RELEASE.md*.
26+
2. Executes cmake configuration to update the version.
27+
3. Updates *RELEASE_NOTES.md*.
28+
- A checklist of the PR includes
29+
- [ ] *build-scripts/version.cmake*
30+
- [ ] *core/version.h*
31+
- [ ] *RELEASE_NOTES.md*
2732
- Once the PR is merged, create a new tag.
2833
- Initiate the release process by triggering *the binary release processes* in *Actions*.

0 commit comments

Comments
 (0)