@@ -17,7 +17,7 @@ Before starting the build, perform some checks and tweaks.
1717### Identify the main GCC version
1818
1919Determine the GCC version (like ` 12.1.0 ` ) and update the ` scripts/VERSION `
20- file; the format is ` 12.1.0-1 ` . The fourth digit is the number of the
20+ file; the format is ` 12.1.0-2 ` . The fourth digit is the number of the
2121the xPack GNU RISC-V Embedded GCC release number of this version.
2222
2323### Update versions in ` README ` files
@@ -32,35 +32,13 @@ the xPack GNU RISC-V Embedded GCC release number of this version.
3232- add a new ` if ` with the new version before the existing code
3333- update the versions, branch names and commit ids
3434
35- ### Update gcc
36-
37- With a git client in
38- [ xpack-dev-tools/gcc] ( https://github.com/xpack-dev-tools/gcc )
39-
40- - identify the tag with the latest release (like ` gcc-12.1.0 ` )
41- - create a new branch with the same name as the tag (like ` gcc-12.1.0 ` )
42- - create a new branch with name suffixed with ` -riscv-none-elf-xpack `
43- (like ` gcc-12.1.0-riscv-none-elf-xpack `
44- - identify the commit which adds the xPack specific changes
45- - cherry pick it; do not commit immediately
46- - check the differences from the non-xpack branch; there should be three files:
47- - ` elf-embed.h ` with the ` LIB_SPEC ` definitions without libgloss
48- - ` config.gcc ` with ` tm_file ` definition that uses ` elf-embed.h `
49- - ` config.sub ` which adds ` *-embed) `
50- - commit as ** add support for riscv-none-embed-***
51- - push both new branches to ` origin `
52- - checkout the ` gcc-12.1.0 ` tag as HEAD
53- - create patch from the commit
54- - rename as ` gcc-12.1.0.patch.diff `
55- - copy to ` patches `
56-
5735### Fix possible open issues
5836
5937Check GitHub issues and pull requests:
6038
6139- < https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/issues/ >
6240
63- and fix them; assign them to a milestone (like ` 12.1.0-1 ` ).
41+ and fix them; assign them to a milestone (like ` 12.1.0-2 ` ).
6442
6543### Check ` README.md `
6644
@@ -72,8 +50,8 @@ but in the version specific release page.
7250
7351- open the ` CHANGELOG.md ` file
7452- check if all previous fixed issues are in
75- - add a new entry like _ - v12.1.0-1 prepared_
76- - commit with a message like _ prepare v12.1.0-1 _
53+ - add a new entry like _ - v12.1.0-2 prepared_
54+ - commit with a message like _ prepare v12.1.0-2 _
7755
7856Note: if you missed to update the ` CHANGELOG.md ` before starting the build,
7957edit the file and rerun the build, it should take only a few minutes to
@@ -322,7 +300,7 @@ git -C ${HOME}/Work/riscv-none-elf-gcc-xpack.git submodule update --init --recur
322300
323301## Create a new GitHub pre-release draft
324302
325- - in ` CHANGELOG.md ` , add the release date and a message like _ - v12.1.0-1 released_
303+ - in ` CHANGELOG.md ` , add the release date and a message like _ - v12.1.0-2 released_
326304- commit and push the ` xpack-develop ` branch
327305- run the xPack action ` trigger-workflow-publish-release `
328306
@@ -331,8 +309,8 @@ The workflows results and logs are available from the
331309
332310The result is a
333311[ draft pre-release] ( https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/ )
334- tagged like ** v12.1.0-1 ** (mind the dash in the middle!) and
335- named like ** xPack GNU RISC-V Embedded GCC v12.1.0-1 ** (mind the dash),
312+ tagged like ** v12.1.0-2 ** (mind the dash in the middle!) and
313+ named like ** xPack GNU RISC-V Embedded GCC v12.1.0-2 ** (mind the dash),
336314with all binaries attached.
337315
338316- edit the draft and attach it to the ` xpack-develop ` branch (important!)
@@ -354,7 +332,7 @@ If any, refer to closed
354332## Update the preview Web
355333
356334- commit the ` develop ` branch of ` xpack/web-jekyll ` GitHub repo;
357- use a message like ** xPack GNU RISC-V Embedded GCC v12.1.0-1 released**
335+ use a message like ** xPack GNU RISC-V Embedded GCC v12.1.0-2 released**
358336- push to GitHub
359337- wait for the GitHub Pages build to complete
360338- the preview web is < https://xpack.github.io/web-preview/news/ >
@@ -396,18 +374,18 @@ watching this project.
396374- compare the SHA sums with those shown by ` cat *.sha `
397375- check the executable names
398376- commit all changes, use a message like
399- ` package.json: update urls for 12.1.0-1 release ` (without ` v ` )
377+ ` package.json: update urls for 12.1.0-2 release ` (without ` v ` )
400378
401379## Publish on the npmjs.com server
402380
403381- select the ` xpack-develop ` branch
404382- check the latest commits ` npm run git-log `
405- - update ` CHANGELOG.md ` , add a line like _ - v12.1.0-1 .1 published on npmjs.com_
406- - commit with a message like _ CHANGELOG: publish npm v12.1.0-1 .1_
383+ - update ` CHANGELOG.md ` , add a line like _ - v12.1.0-2 .1 published on npmjs.com_
384+ - commit with a message like _ CHANGELOG: publish npm v12.1.0-2 .1_
407385- ` npm pack ` and check the content of the archive, which should list
408386 only the ` package.json ` , the ` README.md ` , ` LICENSE ` and ` CHANGELOG.md ` ;
409387 possibly adjust ` .npmignore `
410- - ` npm version 12.1.0-1 .1 ` ; the first 4 numbers are the same as the
388+ - ` npm version 12.1.0-2 .1 ` ; the first 4 numbers are the same as the
411389 GitHub release; the fifth number is the npm specific version
412390- the commits and the tag should have been pushed by the ` postversion ` script;
413391 if not, push them with ` git push origin --tags `
@@ -436,12 +414,12 @@ The tests results are available from the
436414When the release is considered stable, promote it as ` latest ` :
437415
438416- ` npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc `
439- - ` npm dist-tag add @xpack-dev-tools/[email protected] 1 .1 latest ` 417+ - ` npm dist-tag add @xpack-dev-tools/[email protected] 2 .1 latest ` 440418- ` npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc `
441419
442420In case the previous version is not functional and needs to be unpublished:
443421
444- - ` npm unpublish @xpack-dev-tools/[email protected] 1 .X ` 422+ - ` npm unpublish @xpack-dev-tools/[email protected] 2 .X ` 445423
446424## Update the Web
447425
@@ -463,7 +441,7 @@ In case the previous version is not functional and needs to be unpublished:
463441
464442- in a separate browser windows, open [ TweetDeck] ( https://tweetdeck.twitter.com/ )
465443- using the ` @xpack_project ` account
466- - paste the release name like ** xPack GNU RISC-V Embedded GCC v12.1.0-1 released**
444+ - paste the release name like ** xPack GNU RISC-V Embedded GCC v12.1.0-2 released**
467445- paste the link to the Web page
468446 [ release] ( https://xpack.github.io/riscv-none-elf-gcc/releases/ )
469447- click the ** Tweet** button
@@ -487,9 +465,9 @@ Add a new topic in the **Announcements** category of the
487465[ RISC-V forums] < https://groups.google.com/a/groups.riscv.org/g/sw-dev > ).
488466
489467``` console
490- Subject: xPack GNU RISC-V Embedded GCC v12.1.0-1 released
468+ Subject: xPack GNU RISC-V Embedded GCC v12.1.0-2 released
491469
492- Version 12.1.0-1 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release.
470+ Version 12.1.0-2 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release.
493471
494472https://xpack.github.io/blog/2022/05/14/riscv-none-elf-gcc-v11-3-0-1-released/
495473```
0 commit comments