From 773afc8e32249eee119d27a19258bfa6b1e308d7 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 25 Sep 2023 07:08:54 +0300 Subject: [PATCH 01/76] application.sh: disable multilib --- scripts/application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index c3d7f67..8cae68c 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -29,7 +29,7 @@ declare -a XBB_APPLICATION_COMMON_DEPENDENCIES=( texinfo zlib gmp mpfr mpc isl l # Normally should be commented out. Enable it only during tests, # to save some build time. -# XBB_APPLICATION_WITHOUT_MULTILIB="y" +XBB_APPLICATION_WITHOUT_MULTILIB="y" # ----------------------------------------------------------------------------- From 69ffceb883846fe1582cb05942baa53f4214ff0c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 25 Sep 2023 07:13:05 +0300 Subject: [PATCH 02/76] body-jekyll update --- scripts/templates/body-jekyll-release-post-part-1-liquid.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/templates/body-jekyll-release-post-part-1-liquid.md b/scripts/templates/body-jekyll-release-post-part-1-liquid.md index 92f017e..5153f70 100644 --- a/scripts/templates/body-jekyll-release-post-part-1-liquid.md +++ b/scripts/templates/body-jekyll-release-post-part-1-liquid.md @@ -324,10 +324,6 @@ The binaries for all supported platforms of build environments based on slightly older distributions, that should be compatible with most recent systems. -The scripts used to build this distribution are in: - -- `distro-info/scripts` - For the prerequisites and more details on the build procedure, please see the [How to build](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/blob/xpack/README-BUILD.md) page. From b128a4fbcd5286942632a68e27cc204f18d58980 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 12 Nov 2023 22:29:35 +0200 Subject: [PATCH 03/76] versioning.sh cosmetics --- scripts/versioning.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index f47d0e6..a800af7 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -215,7 +215,7 @@ function application_build_versioned_components() # https://sourceforge.net/projects/lzmautils/files/ XBB_XZ_VERSION="5.4.4" # "5.2.5" - # https://github.com/facebook/zstd/releases + # https://github.com/facebook/zstd/tags XBB_ZSTD_VERSION="1.5.5" # "1.5.2" # https://ftp.gnu.org/gnu/ncurses/ From 6b366bfe0d660a0ef9591bb34da86c1946cefb73 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 12 Nov 2023 22:31:57 +0200 Subject: [PATCH 04/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0d47b64..b0a6067 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.1" + "@xpack-dev-tools/xbb-helper": "^2.0.2" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From e93a14ac8d5a1031ce62e2d300b2a31030c27222 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 3 Dec 2023 16:42:12 +0200 Subject: [PATCH 05/76] re-generate workflows --- .github/workflows/build-all.yml | 12 ++++++------ .github/workflows/build-xbbla.yml | 2 +- .github/workflows/build-xbbla32.yml | 2 +- .github/workflows/build-xbbli.yml | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index a9e5363..0137807 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -131,7 +131,7 @@ jobs: timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -202,7 +202,7 @@ jobs: timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm, xbbla32] container: - image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -272,7 +272,7 @@ jobs: timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm64, xbbla] container: - image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -379,7 +379,7 @@ jobs: run: | xpm install --config darwin-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config darwin-x64 - + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action uses: ncipollo/release-action@v1 @@ -447,7 +447,7 @@ jobs: xpm install --config darwin-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config darwin-arm64 - + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action uses: ncipollo/release-action@v1 diff --git a/.github/workflows/build-xbbla.yml b/.github/workflows/build-xbbla.yml index 6b3e579..79daf55 100644 --- a/.github/workflows/build-xbbla.yml +++ b/.github/workflows/build-xbbla.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm64, xbbla] container: - image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.1 defaults: run: shell: bash diff --git a/.github/workflows/build-xbbla32.yml b/.github/workflows/build-xbbla32.yml index 9b28f69..4482aa4 100644 --- a/.github/workflows/build-xbbla32.yml +++ b/.github/workflows/build-xbbla32.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm, xbbla32] container: - image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.1 defaults: run: shell: bash diff --git a/.github/workflows/build-xbbli.yml b/.github/workflows/build-xbbli.yml index 9f5a814..f4e4fc1 100644 --- a/.github/workflows/build-xbbli.yml +++ b/.github/workflows/build-xbbli.yml @@ -60,7 +60,7 @@ jobs: timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -130,7 +130,7 @@ jobs: timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.0 + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 defaults: run: shell: bash @@ -170,7 +170,7 @@ jobs: run: | xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config win32-x64 - + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action uses: ncipollo/release-action@v1 From cacff03fb82009cf28d6d2c422fe7964b7a5f5ac Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 3 Dec 2023 16:51:11 +0200 Subject: [PATCH 06/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b0a6067..d27a356 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.2" + "@xpack-dev-tools/xbb-helper": "^2.0.3" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From d1b89ad6dbdb38d85c7b2dd2eeec1de0d5d86378 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 28 Jan 2024 19:59:52 +0200 Subject: [PATCH 07/76] README update --- README-MAINTAINER.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index e8bf331..eab89e3 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -811,7 +811,7 @@ In case the previous version is not functional and needs to be unpublished: ## Share on Twitter -- in a separate browser windows, open [TweetDeck](https://tweetdeck.twitter.com/) +- in a separate browser windows, open [X/Twitter](https://twitter.com) - using the `@xpack_project` account - paste the release name like **xPack GNU RISC-V Embedded GCC v13.2.0-2 released** - paste the link to the Web page From 58c6c797c8285f9df28a1c4a08eb58e1bc1d6644 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 28 Jan 2024 20:00:06 +0200 Subject: [PATCH 08/76] pckage.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d27a356..d9f503b 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.3" + "@xpack-dev-tools/xbb-helper": "^2.0.5" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From 671428f1f788e0b4fc0a5f97397bbf28881374bd Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 28 Jan 2024 20:00:21 +0200 Subject: [PATCH 09/76] ISSUE_TEMPLATE.md update --- .github/ISSUE_TEMPLATE.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 961e893..ea8ff58 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,34 +1,37 @@ ### Disclaimer The xPack GNU RISC-V Embedded GCC is only a binary distribution of -the **SiFive RISC-V GNU Embedded Toolchain**, +the GNU GCC, and does not intend to add new functionality, or to fix existing problems. If you have questions/suggestions related to the procedure used to build/publish the binary distribution, continue reading the next sections. If you have problems related to RISC-V GCC functionality, please use the -official [SiFive Forums](https://forums.sifive.com/). +official GCC support channels. ### Prerequisites Before entering a new ticket, please consider the following: -- [ ] read the documentation pages carefully (`share/doc/pdf/gcc/gcc.pdf`) -- [ ] check the [xPack Forums](https://www.tapatalk.com/groups/xpack/) for similar problems +- [ ] read the GCC documentation pages carefully +- [ ] check the [GitHub Discussions](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/discussions) for similar problems - [ ] check the [GitHub Issues](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/issues/) If you still could not find an answer, if you have interesting use cases, if you have custom configurations, and generally if you have any experience that you would like to share with others, use the -[xPack Forums](https://www.tapatalk.com/groups/xpack/), the -GNU RISC-V Embedded GCC section. +[GitHub Discussions](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/discussions). If you are convinced that you identified a bug related to the binary distribution, not to GNU RISC-V Embedded GCC itself (if you have doubts, use the forum), or you have a pertinent suggestion how to enhance the xPack GNU RISC-V Embedded GCC distribution, continue and register a new issue. +Remove the above explanatory sections before continuing. + +--- + ### Description [Description of the bug or feature] @@ -53,4 +56,4 @@ identify your problem. --- -Note: Remove unnecessary text after reading, before entering your ticket. +DO NOT enter your ticket with the Disclaimer and Prerequisites explanations! From 5c04a4b9808351ccdbb8140fc3f29b825f2d15b9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Wed, 6 Mar 2024 22:59:45 +0200 Subject: [PATCH 10/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9f503b..6e9a03d 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.5" + "@xpack-dev-tools/xbb-helper": "^2.0.6" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From 0a31021aa6b148a6bdbc9c51ef49c518ae843932 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Wed, 6 Mar 2024 23:02:53 +0200 Subject: [PATCH 11/76] body-jekyll update --- .../body-jekyll-release-post-part-2-liquid.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/scripts/templates/body-jekyll-release-post-part-2-liquid.md b/scripts/templates/body-jekyll-release-post-part-2-liquid.md index 9781321..2a2b439 100644 --- a/scripts/templates/body-jekyll-release-post-part-2-liquid.md +++ b/scripts/templates/body-jekyll-release-post-part-2-liquid.md @@ -1,17 +1,24 @@ ## Deprecation notices +### Linux minimum requirements + +The minimum requirement is GLIBC 2.27, available starting +with Ubuntu 18, Debian 10 and RedHat 8. +Support for RedHat 7 was dropped in 2022. + ### 32-bit support Support for 32-bit Intel Linux and Intel Windows was -dropped in 2022. Support for 32-bit Arm Linux (armv7l) will be preserved -for a while, due to the large user base of 32-bit Raspberry Pi systems. +dropped in 2022. -### Linux minimum requirements +### Pre-deprecation notice for 32-bit Arm Linux -Support for RedHat 7 was dropped in 2022 and the -minimum requirement was raised to GLIBC 2.27, available starting -with Ubuntu 18, Debian 10 and RedHat 8. +Due to the large user base of 32-bit Raspberry Pi systems, +support for 32-bit Arm Linux (armv7l) will be preserved +for a little while, but expect it to be dropped by 2025, +so it is recommended to consider an upgrade to a RPi 4 or 5 with +at least 4 GB (preferably 8 GB) of RAM. ## Pre-deprecation notice for Ubuntu 18.04 From 41f97e85e43bb86c47c6c61dfc9abaeccbd982de Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 7 Mar 2024 13:49:03 +0200 Subject: [PATCH 12/76] package.json: bump deps --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6e9a03d..956e5ea 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "common-actions-native" ], "devDependencies": { - "@xpack-dev-tools/clang": "16.0.6-1.1", + "@xpack-dev-tools/clang": "17.0.6-1.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, @@ -282,7 +282,7 @@ "common-docker" ], "devDependencies": { - "@xpack-dev-tools/gcc": "13.2.0-1.1", + "@xpack-dev-tools/gcc": "13.2.0-2.1", "@xpack-dev-tools/patchelf": "0.18.0-1.1" }, "properties": { @@ -313,7 +313,7 @@ "common-docker" ], "devDependencies": { - "@xpack-dev-tools/gcc": "13.2.0-1.1", + "@xpack-dev-tools/gcc": "13.2.0-2.1", "@xpack-dev-tools/mingw-w64-gcc": "13.2.0-1.1", "@xpack-dev-tools/wine": "8.0.2-1.1" }, From da26c6d2dcfd133fc31beb1db523d00dd6d4ef2b Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 7 Mar 2024 21:15:59 +0200 Subject: [PATCH 13/76] package.json: xpm-version 0.18.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 956e5ea..7e91209 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "buildFolderRelativePath": "{{ 'build' | path_join: configuration.name | to_filename | downcase }}", "buildFolderRelativePathPosix": "{{ 'build' | path_posix_join: configuration.name | downcase }}", "commandBashBuild": "bash {{ properties.dbg }} scripts/build.sh --target {{ configuration.name }} --build-folder {{ properties.buildFolderRelativePathPosix }}", - "xpm-version": "next", + "xpm-version": "0.18.0", "xpm-install-loglevel": "trace", "dbg": "" }, From c4198bfec3969a2f59edf48bdce3d9471aae419c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 8 Mar 2024 01:55:19 +0200 Subject: [PATCH 14/76] package.json: xpm-version 0.18.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7e91209..a085475 100644 --- a/package.json +++ b/package.json @@ -220,7 +220,7 @@ "docker rm --force {{ properties.containerName }}", "docker create --name {{ properties.containerName }} --tty --hostname docker --volume $(pwd):$(pwd) --volume ${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git:${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git --volume ${HOME}/.cache/xPacks:${HOME}/.cache/xPacks --volume ${HOME}/Work/cache:${HOME}/Work/cache --volume ${HOME}/.wine:${HOME}/.wine --workdir $(pwd) {{ properties.dockerImage }}", "docker start {{ properties.containerName }}", - "docker exec {{ properties.containerName }} {{ properties.force32 }} npm install --location=global xpm@latest", + "docker exec {{ properties.containerName }} {{ properties.force32 }} npm install --location=global xpm@{{ properties.xpm-version }}", "docker exec {{ properties.containerName }} {{ properties.force32 }} userdel node", "docker exec {{ properties.containerName }} {{ properties.force32 }} groupadd --gid $(id -g) --force $(id -gn)", "docker exec {{ properties.containerName }} {{ properties.force32 }} useradd --home-dir ${HOME} --uid $(id -u) --gid $(id -g) $(id -un) --create-home", From 32e55bc26cff27428bfaea72433f9105186faf0c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 22 Mar 2024 22:01:47 +0200 Subject: [PATCH 15/76] package.json: xpm-version 0.18.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a085475..93a9ed6 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "common-actions-native" ], "devDependencies": { - "@xpack-dev-tools/clang": "17.0.6-1.1", + "@xpack-dev-tools/clang": "16.0.6-1.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, From f3f776f7186b5040f886eed657fb184e6cc77b61 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 29 Mar 2024 20:32:03 +0200 Subject: [PATCH 16/76] use XBB_APPLICATION_GCC_MULTILIB_LIST --- scripts/application.sh | 2 ++ scripts/versioning.sh | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/application.sh b/scripts/application.sh index 8cae68c..b885da0 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -37,6 +37,8 @@ XBB_APPLICATION_TARGET_TRIPLET=${XBB_APPLICATION_TARGET_TRIPLET:-"riscv-none-elf XBB_APPLICATION_GCC_ARCH=${XBB_APPLICATION_GCC_ARCH:-"rv32imac"} XBB_APPLICATION_GCC_ABI=${XBB_APPLICATION_GCC_ABI:-"ilp32"} +# XBB_APPLICATION_GCC_MULTILIB_LIST=" ... " + # ----------------------------------------------------------------------------- XBB_GITHUB_ORG="${XBB_GITHUB_ORG:-"xpack-dev-tools"}" diff --git a/scripts/versioning.sh b/scripts/versioning.sh index a800af7..b98ac04 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -61,7 +61,7 @@ function application_build_versioned_components() # The `zicsr*zifencei` seem redundant for GCC 13, but are # important for GCC 12. - XBB_GCC_MULTILIB_LIST=${XBB_GCC_MULTILIB_LIST:-"\ + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ rv32e-ilp32e--zicsr*zifencei \ rv32ea-ilp32e--zicsr*zifencei \ rv32eac-ilp32e--zicsr*zifencei \ @@ -123,7 +123,7 @@ function application_build_versioned_components() else # Short list used during development to save time. # Skip: rv32imac-ilp32-- (see above). - XBB_GCC_MULTILIB_LIST=${XBB_GCC_MULTILIB_LIST:-"\ + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ rv32emac-ilp32e-- \ rv32ima-ilp32--zicsr*zifencei \ rv64imac-lp64-- \ @@ -374,7 +374,7 @@ function application_build_versioned_components() # DO NOT add the combination that is already given as the default! # rv32imac-ilp32-- \ - XBB_GCC_MULTILIB_LIST=${XBB_GCC_MULTILIB_LIST:-"\ + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ rv32e-ilp32e-- \ rv32ea-ilp32e-- \ rv32eac-ilp32e-- \ @@ -436,7 +436,7 @@ function application_build_versioned_components() else # Short list used during development to save time. # Skip: rv32imac-ilp32-- (see above). - XBB_GCC_MULTILIB_LIST=${XBB_GCC_MULTILIB_LIST:-"\ + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ rv32emac-ilp32e-- \ rv32ima-ilp32-- \ rv64imac-lp64-- \ From eaf5129ae1e7baf39ac8d3d12154ec5e66e8e164 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Apr 2024 19:30:57 +0300 Subject: [PATCH 17/76] versioning.sh: avoid xz 5.6 --- scripts/versioning.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index b98ac04..f8dd8a2 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -213,6 +213,7 @@ function application_build_versioned_components() XBB_ISL_VERSION="0.26" # "0.24" # https://sourceforge.net/projects/lzmautils/files/ + # Avoid 5.6.[01]! XBB_XZ_VERSION="5.4.4" # "5.2.5" # https://github.com/facebook/zstd/tags From ecdf79cd525cd9c87d25144e5cc5602dcbe86600 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Apr 2024 19:34:30 +0300 Subject: [PATCH 18/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 93a9ed6..6d0ee83 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.6" + "@xpack-dev-tools/xbb-helper": "^2.0.9" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From c6b3a44ee576a5a602c398ba345b5759dda3a66e Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 2 May 2024 22:50:38 +0300 Subject: [PATCH 19/76] package.json: clang 17.0.6-1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d0ee83..82b5a9d 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "common-actions-native" ], "devDependencies": { - "@xpack-dev-tools/clang": "16.0.6-1.1", + "@xpack-dev-tools/clang": "17.0.6-1.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, From 2d921014b11d6ab8379629b6e0d9d1170f9dde7b Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 11:19:07 +0300 Subject: [PATCH 20/76] versioning.sh: no need for DISABLE_WIDEC="y" --- scripts/versioning.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index f8dd8a2..2939d08 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -33,8 +33,6 @@ function application_build_versioned_components() XBB_FIX_LTO_PLUGIN="y" - XBB_NCURSES_DISABLE_WIDEC="y" - XBB_WITH_GDB_PY3="" # --------------------------------------------------------------------------- @@ -229,11 +227,7 @@ function application_build_versioned_components() libiconv_build "${XBB_LIBICONV_VERSION}" - ( - XBB_NCURSES_DISABLE_WIDEC="y" - - ncurses_build "${XBB_NCURSES_VERSION}" - ) + ncurses_build "${XBB_NCURSES_VERSION}" # new makeinfo needed by binutils 2.41 and up # checking for suffix of object files... MAKEINFO doc/bfd.info @@ -617,7 +611,7 @@ function application_build_versioned_components() gcc_cross_copy_linux_libs "${XBB_APPLICATION_TARGET_TRIPLET}" ( - # To access the bootstrap compiler. + # To access the bootstrap compiler (via CC_FOR_TARGET & Co). xbb_activate_installed_bin gcc_cross_build_final "${XBB_GCC_VERSION}" "${XBB_APPLICATION_TARGET_TRIPLET}" From c8e47e639fd56a1fca4c9aa726f329ad85cb490e Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 12:34:24 +0300 Subject: [PATCH 21/76] application.sh: HAS_FLEX_PACKAGE="y" --- scripts/application.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/application.sh b/scripts/application.sh index b885da0..92f3700 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -25,6 +25,9 @@ XBB_APPLICATION_DESCRIPTION="${XBB_APPLICATION_DISTRO_NAME} ${XBB_APPLICATION_NA declare -a XBB_APPLICATION_DEPENDENCIES=( ) declare -a XBB_APPLICATION_COMMON_DEPENDENCIES=( texinfo zlib gmp mpfr mpc isl libiconv xz zstd binutils-cross gcc-cross newlib-cross expat libunistring gettext gpm ncurses readline bzip2 libffi mpdecimal sqlite libxcrypt openssl python3 gdb-cross ) +XBB_APPLICATION_HAS_FLEX_PACKAGE="y" + + # ----------------------------------------------------------------------------- # Normally should be commented out. Enable it only during tests, From a811dcece81791eec349459e094afae474d99489 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 12:34:57 +0300 Subject: [PATCH 22/76] application.sh: add BOOTSTRAP_ONLY --- scripts/application.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/application.sh b/scripts/application.sh index 92f3700..aafec87 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -27,6 +27,9 @@ declare -a XBB_APPLICATION_COMMON_DEPENDENCIES=( texinfo zlib gmp mpfr mpc isl l XBB_APPLICATION_HAS_FLEX_PACKAGE="y" +# XBB_APPLICATION_BOOTSTRAP_ONLY="y" + +XBB_APPLICATION_TEST_PRERELEASE="y" # ----------------------------------------------------------------------------- From 1b48206d67d1123aa24d58e134ddeb722b22150d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 12:36:14 +0300 Subject: [PATCH 23/76] versioning.sh: compute XBB_GCC_VERSION_MINOR --- scripts/versioning.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 2939d08..1e16cba 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -11,6 +11,10 @@ function application_build_versioned_components() { + export XBB_GCC_VERSION="$(xbb_strip_version_pre_release "${XBB_RELEASE_VERSION}")" + export XBB_GCC_VERSION_MAJOR=$(xbb_get_version_major "${XBB_GCC_VERSION}") + export XBB_GCC_VERSION_MINOR=$(xbb_get_version_minor "${XBB_GCC_VERSION}") + # This definition also enables building newlib-nano. XBB_NEWLIB_NANO_SUFFIX="-nano" @@ -37,9 +41,6 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- - XBB_GCC_VERSION="$(xbb_strip_version_pre_release "${XBB_RELEASE_VERSION}")" - XBB_GCC_VERSION_MAJOR=$(xbb_get_version_major "${XBB_GCC_VERSION}") - # In reverse chronological order. if [[ ${XBB_RELEASE_VERSION} =~ 13[.][2][.]0-.* ]] || [[ ${XBB_RELEASE_VERSION} =~ 12[.][3][.]0-.* ]] From 82df9f6e2afcd1a5b52d2869856e9f5f69faaaf9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 12:37:11 +0300 Subject: [PATCH 24/76] versioning.sh: use gcc_cross_build_common --- scripts/versioning.sh | 181 +++++------------------------------------- 1 file changed, 21 insertions(+), 160 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 1e16cba..735cf7c 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -224,46 +224,6 @@ function application_build_versioned_components() # https://github.com/westes/texinfo/releases XBB_TEXINFO_VERSION="7.0.3" - # ------------------------------------------------------------------------- - - libiconv_build "${XBB_LIBICONV_VERSION}" - - ncurses_build "${XBB_NCURSES_VERSION}" - - # new makeinfo needed by binutils 2.41 and up - # checking for suffix of object files... MAKEINFO doc/bfd.info - # /Users/ilg/Work/xpack-dev-tools-build/riscv-none-elf-gcc-13.2.0-1/darwin-x64/sources/binutils-2.41/bfd/doc/bfd.texi:245: Node `Sections' requires a sectioning command (e.g., @unnumberedsubsec). - - # Requires libiconf & ncurses. - texinfo_build "${XBB_TEXINFO_VERSION}" - - # ------------------------------------------------------------------------- - - # Download GCC earlier, to have time to run the multilib generator. - gcc_cross_download - gcc_cross_generate_riscv_multilib_file - - # ------------------------------------------------------------------------- - # Build the native dependencies. - - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - echo - echo "# Building a bootstrap compiler..." - - gcc_cross_build_dependencies - - gcc_cross_build_all "${XBB_APPLICATION_TARGET_TRIPLET}" - fi - - # ------------------------------------------------------------------------- - # Build the target dependencies. - - xbb_reset_env - xbb_set_target "requested" - - gcc_cross_build_dependencies - # ------------------------------------------------------------------------- # GDB dependencies @@ -305,54 +265,15 @@ function application_build_versioned_components() # https://www.openssl.org/source/ XBB_OPENSSL_VERSION="1.1.1v" # "1.1.1q" - gdb_cross_build_dependencies - # ------------------------------------------------------------------------- - # Build the application binaries. - xbb_set_executables_install_path "${XBB_APPLICATION_INSTALL_FOLDER_PATH}" - xbb_set_libraries_install_path "${XBB_DEPENDENCIES_INSTALL_FOLDER_PATH}" + # Download GCC earlier, to have time to run the multilib generator. + gcc_cross_download + gcc_cross_generate_riscv_multilib_file # ------------------------------------------------------------------------- - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - ( - # For makeinfo (binutils). - xbb_activate_installed_bin - - binutils_cross_build "${XBB_BINUTILS_VERSION}" "${XBB_APPLICATION_TARGET_TRIPLET}" - - # As usual, for Windows things require more innovtive solutions. - # In this case the libraries are copied from the bootstrap, - # and only the executables are build for Windows. - gcc_cross_copy_linux_libs "${XBB_APPLICATION_TARGET_TRIPLET}" - - # Be sure to have installed_bin to access the bootstrap compiler. - gcc_cross_build_final "${XBB_GCC_VERSION}" "${XBB_APPLICATION_TARGET_TRIPLET}" - ) - else - # For macOS & GNU/Linux build the toolchain natively. - gcc_cross_build_all "${XBB_APPLICATION_TARGET_TRIPLET}" - fi - - gdb_cross_build "${XBB_APPLICATION_TARGET_TRIPLET}" "" - - if [ "${XBB_WITH_GDB_PY3}" == "y" ] - then - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - # Shortcut, use the existing python.exe instead of building - # if from sources. It also downloads the sources. - python3_download_win "${XBB_PYTHON3_VERSION}" - python3_copy_win_syslibs - else # linux or darwin - # Copy libraries from sources and dependencies. - python3_copy_syslibs - fi - - gdb_cross_build "${XBB_APPLICATION_TARGET_TRIPLET}" "-py3" - fi + gcc_cross_build_common # ------------------------------------------------------------------------- elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][2][.]0-.* ]] @@ -524,33 +445,6 @@ function application_build_versioned_components() # https://github.com/facebook/zstd/releases XBB_ZSTD_VERSION="1.5.2" - # ------------------------------------------------------------------------- - - # Download GCC earlier, to have time to run the multilib generator. - gcc_cross_download - gcc_cross_generate_riscv_multilib_file - - # ------------------------------------------------------------------------- - # Build the native dependencies. - - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - echo - echo "# Building a bootstrap compiler..." - - gcc_cross_build_dependencies - - gcc_cross_build_all "${XBB_APPLICATION_TARGET_TRIPLET}" - fi - - # ------------------------------------------------------------------------- - # Build the target dependencies. - - xbb_reset_env - xbb_set_target "requested" - - gcc_cross_build_dependencies - # ------------------------------------------------------------------------- # GDB dependencies @@ -592,53 +486,13 @@ function application_build_versioned_components() # https://www.openssl.org/source/ XBB_OPENSSL_VERSION="1.1.1q" - gdb_cross_build_dependencies - - # ------------------------------------------------------------------------- - # Build the application binaries. - - xbb_set_executables_install_path "${XBB_APPLICATION_INSTALL_FOLDER_PATH}" - xbb_set_libraries_install_path "${XBB_DEPENDENCIES_INSTALL_FOLDER_PATH}" - # ------------------------------------------------------------------------- - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - binutils_cross_build "${XBB_BINUTILS_VERSION}" "${XBB_APPLICATION_TARGET_TRIPLET}" - - # As usual, for Windows things require more innovtive solutions. - # In this case the libraries are copied from the bootstrap, - # and only the executables are build for Windows. - gcc_cross_copy_linux_libs "${XBB_APPLICATION_TARGET_TRIPLET}" - - ( - # To access the bootstrap compiler (via CC_FOR_TARGET & Co). - xbb_activate_installed_bin - - gcc_cross_build_final "${XBB_GCC_VERSION}" "${XBB_APPLICATION_TARGET_TRIPLET}" - ) - else - # For macOS & GNU/Linux build the toolchain natively. - gcc_cross_build_all "${XBB_APPLICATION_TARGET_TRIPLET}" - fi - - gdb_cross_build "${XBB_APPLICATION_TARGET_TRIPLET}" "" + # Download GCC earlier, to have time to run the multilib generator. + gcc_cross_download + gcc_cross_generate_riscv_multilib_file - if [ "${XBB_WITH_GDB_PY3}" == "y" ] - then - if [ "${XBB_REQUESTED_HOST_PLATFORM}" == "win32" ] - then - # Shortcut, use the existing python.exe instead of building - # if from sources. It also downloads the sources. - python3_download_win "${XBB_PYTHON3_VERSION}" - python3_copy_win_syslibs - else # linux or darwin - # Copy libraries from sources and dependencies. - python3_copy_syslibs - fi - - gdb_cross_build "${XBB_APPLICATION_TARGET_TRIPLET}" "-py3" - fi + gcc_cross_build_common # ------------------------------------------------------------------------- else @@ -648,14 +502,21 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- - gcc_cross_tidy_up - - if [ "${XBB_REQUESTED_HOST_PLATFORM}" != "win32" ] + # Switch used during development to test bootstrap on Windows. + if [ "${XBB_APPLICATION_BOOTSTRAP_ONLY:-""}" != "y" ] || + [ "${XBB_REQUESTED_HOST_PLATFORM}" != "win32" ] then - gcc_cross_strip_libs "${XBB_APPLICATION_TARGET_TRIPLET}" - fi - gcc_cross_final_tunings + gcc_cross_tidy_up + + if [ "${XBB_REQUESTED_HOST_PLATFORM}" != "win32" ] + then + gcc_cross_strip_libs "${XBB_APPLICATION_TARGET_TRIPLET}" + fi + + gcc_cross_final_tunings + + fi } From f5b917760ac2f198320b4b94329aaee3538df982 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 23:51:02 +0300 Subject: [PATCH 25/76] versioning.sh: add 14.* --- scripts/versioning.sh | 253 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 251 insertions(+), 2 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 735cf7c..4ae6d58 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -42,8 +42,257 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- # In reverse chronological order. - if [[ ${XBB_RELEASE_VERSION} =~ 13[.][2][.]0-.* ]] || - [[ ${XBB_RELEASE_VERSION} =~ 12[.][3][.]0-.* ]] + if [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.]0-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.]0-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] + then + + # ------------------------------------------------------------------------- + + if [ "${XBB_APPLICATION_TEST_PRERELEASE:-""}" == "y" ] + then + # https://github.com/gcc-mirror/gcc + XBB_GCC_GIT_URL="https://github.com/gcc-mirror/gcc.git" + XBB_GCC_GIT_BRANCH="releases/gcc-${XBB_GCC_VERSION_MAJOR}" + fi + + # ------------------------------------------------------------------------- + + if [ "${XBB_APPLICATION_WITHOUT_MULTILIB:-""}" != "y" ] + then + # The SiFive list from 10.2 with a lot of non-c extras. + # (including `rv32imaf-ilp32f--`). + if [ "${XBB_IS_DEVELOP}" != "y" ] + then + + # DO NOT add the combination that is already given as the default! + # rv32imac-ilp32-- \ + + # The `zicsr*zifencei` seem redundant for GCC 13, but are + # important for GCC 12. + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ + rv32e-ilp32e--zicsr*zifencei \ + rv32ea-ilp32e--zicsr*zifencei \ + rv32eac-ilp32e--zicsr*zifencei \ + rv32ec-ilp32e--zicsr*zifencei \ + rv32em-ilp32e--zicsr*zifencei \ + rv32ema-ilp32e--zicsr*zifencei \ + rv32emac-ilp32e--zicsr*zifencei \ + rv32emc-ilp32e--zicsr*zifencei \ + \ + rv32i-ilp32--zicsr*zifencei \ + rv32ia-ilp32--zicsr*zifencei \ + rv32iac-ilp32--zicsr*zifencei \ + rv32iaf-ilp32f--zicsr*zifencei \ + rv32iafc-ilp32f--zicsr*zifencei \ + rv32iafd-ilp32d--zicsr*zifencei \ + rv32iafdc-ilp32d--zicsr*zifencei \ + rv32ic-ilp32--zicsr*zifencei \ + rv32if-ilp32f--zicsr*zifencei \ + rv32ifc-ilp32f--zicsr*zifencei \ + rv32ifd-ilp32d--zicsr*zifencei \ + rv32ifdc-ilp32d--zicsr*zifencei \ + rv32im-ilp32--zicsr*zifencei \ + rv32ima-ilp32--zicsr*zifencei \ + rv32imaf-ilp32f--zicsr*zifencei \ + rv32imafc-ilp32f--zicsr*zifencei \ + rv32imafd-ilp32d--zicsr*zifencei \ + rv32imafdc-ilp32d--zicsr*zifencei \ + rv32imc-ilp32--zicsr*zifencei \ + rv32imf-ilp32f--zicsr*zifencei \ + rv32imfc-ilp32f--zicsr*zifencei \ + rv32imfd-ilp32d--zicsr*zifencei \ + rv32imfdc-ilp32d--zicsr*zifencei \ + \ + rv64i-lp64--zicsr*zifencei \ + rv64ia-lp64--zicsr*zifencei \ + rv64iac-lp64--zicsr*zifencei \ + rv64iaf-lp64f--zicsr*zifencei \ + rv64iafc-lp64f--zicsr*zifencei \ + rv64iafd-lp64d--zicsr*zifencei \ + rv64iafdc-lp64d--zicsr*zifencei \ + rv64ic-lp64--zicsr*zifencei \ + rv64if-lp64f--zicsr*zifencei \ + rv64ifc-lp64f--zicsr*zifencei \ + rv64ifd-lp64d--zicsr*zifencei \ + rv64ifdc-lp64d--zicsr*zifencei \ + rv64im-lp64--zicsr*zifencei \ + rv64ima-lp64--zicsr*zifencei \ + rv64imac-lp64--zicsr*zifencei \ + rv64imaf-lp64f--zicsr*zifencei \ + rv64imafc-lp64f--zicsr*zifencei \ + rv64imafd-lp64d--zicsr*zifencei \ + rv64imafdc-lp64d--zicsr*zifencei \ + rv64imc-lp64--zicsr*zifencei \ + rv64imf-lp64f--zicsr*zifencei \ + rv64imfc-lp64f--zicsr*zifencei \ + rv64imfd-lp64d--zicsr*zifencei \ + rv64imfdc-lp64d--zicsr*zifencei \ + "} + else + # Short list used during development to save time. + # Skip: rv32imac-ilp32-- (see above). + XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ + rv32emac-ilp32e-- \ + rv32ima-ilp32--zicsr*zifencei \ + rv64imac-lp64-- \ + "} + fi + fi + + # https://ftp.gnu.org/gnu/binutils/ + # https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.xz + + # Note "2.41" requires a newer makeinfo + XBB_BINUTILS_VERSION="2.42" # "2.41" + + XBB_BINUTILS_SRC_FOLDER_NAME="binutils-${XBB_BINUTILS_VERSION}" + XBB_BINUTILS_ARCHIVE_NAME="binutils-${XBB_BINUTILS_VERSION}.tar.xz" + XBB_BINUTILS_ARCHIVE_URL="https://ftp.gnu.org/gnu/binutils/${XBB_BINUTILS_ARCHIVE_NAME}" + + XBB_BINUTILS_PATCH_FILE_NAME="binutils-${XBB_BINUTILS_VERSION}.patch" + + # XBB_GCC_VERSION computer from XBB_RELEASE_VERSION + XBB_GCC_SRC_FOLDER_NAME="gcc-${XBB_GCC_VERSION}" + XBB_GCC_ARCHIVE_NAME="${XBB_GCC_SRC_FOLDER_NAME}.tar.xz" + XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" + + # For the mingw abort() patch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + + # The Apple Silicon host patches are already in for 12.x. + # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + # check_patch "${GCC_PATCH_FILE_NAME}" + + # https://www.sourceware.org/ftp/newlib/index.html + # ftp://sourceware.org/pub/newlib/newlib-4.3.0.20230120.tar.gz + XBB_NEWLIB_VERSION="4.4.0.20231231" # "4.2.0.20211231" + + XBB_NEWLIB_SRC_FOLDER_NAME="newlib-${XBB_NEWLIB_VERSION}" + XBB_NEWLIB_ARCHIVE_NAME="newlib-${XBB_NEWLIB_VERSION}.tar.gz" + XBB_NEWLIB_ARCHIVE_URL="ftp://sourceware.org/pub/newlib/${XBB_NEWLIB_ARCHIVE_NAME}" + + XBB_ENABLE_NEWLIB_RISCV_NANO_CXX_PATCH="y" + + # https://ftp.gnu.org/gnu/gdb/ + # https://ftp.gnu.org/gnu/gdb/gdb-13.2.tar.xz + + # PATCH! + XBB_GDB_VERSION="14.2" # "13.2" + XBB_GDB_SRC_FOLDER_NAME="gdb-${XBB_GDB_VERSION}" + XBB_GDB_ARCHIVE_NAME="${XBB_GDB_SRC_FOLDER_NAME}.tar.xz" + XBB_GDB_ARCHIVE_URL="https://ftp.gnu.org/gnu/gdb/${XBB_GDB_ARCHIVE_NAME}" + + # Mandatory, otherwise gdb-py3 is not relocatable. + XBB_GDB_PATCH_FILE_NAME="gdb-${XBB_GDB_VERSION}-cross.git.patch" + check_patch "${XBB_GDB_PATCH_FILE_NAME}" + + # https://www.python.org/ftp/python/ + + XBB_WITH_GDB_PY3="y" + + # Requires `scripts/helper/extras/python/pyconfig-win-3.11.4.h` & + # `python3-config-win.sh` + # 3.12.2 fails with `libreadline.so.7: undefined symbol: UP` + # https://stackoverflow.com/questions/46881581/libreadline-so-7-undefined-symbol-up + # TODO: investigate + export XBB_PYTHON3_VERSION="3.11.4" # "3.12.2" # "3.11.4" # "3.10.4" + export XBB_PYTHON3_VERSION_MAJOR=$(xbb_get_version_major "${XBB_PYTHON3_VERSION}") + export XBB_PYTHON3_VERSION_MINOR=$(xbb_get_version_minor "${XBB_PYTHON3_VERSION}") + + # Explicit, since it is also used in python3_copy_syslibs + export XBB_PYTHON3_SRC_FOLDER_NAME="Python-${XBB_PYTHON3_VERSION}" + + # https://ftp.gnu.org/pub/gnu/libiconv/ + XBB_LIBICONV_VERSION="1.17" + + # https://zlib.net/fossils/ + XBB_ZLIB_VERSION="1.3.1" # "1.2.13" # "1.2.12" + + # https://gmplib.org/download/gmp/ + # Arm: In `gmp-h.in` search for `__GNU_MP_VERSION`. + XBB_GMP_VERSION="6.3.0" + + # https://www.mpfr.org/history.html + # Arm: In `VERSION`. + XBB_MPFR_VERSION="4.2.1" # "4.2.0" + + # https://www.multiprecision.org/mpc/download.html + # Arm: In `configure`, search for `VERSION=`. + XBB_MPC_VERSION="1.3.1" + + # https://sourceforge.net/projects/libisl/files/ + # Arm: In `configure`, search for `PACKAGE_VERSION=`. + XBB_ISL_VERSION="0.26" + + # https://sourceforge.net/projects/lzmautils/files/ + # Avoid 5.6.[01]! + XBB_XZ_VERSION="5.4.6" # "5.4.4" + + # https://github.com/facebook/zstd/tags + XBB_ZSTD_VERSION="1.5.6" # "1.5.5" + + # https://ftp.gnu.org/gnu/ncurses/ + XBB_NCURSES_VERSION="6.5" # "6.4" + + # https://ftp.gnu.org/gnu/texinfo/ + XBB_TEXINFO_VERSION="7.1" # "7.0.3" + + # ------------------------------------------------------------------------- + # GDB dependencies + + # https://github.com/libexpat/libexpat/releases + # Arm: from release notes + # https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads-1 + XBB_EXPAT_VERSION="2.6.2" # "2.5.0" + + # https://ftp.gnu.org/gnu/libunistring/ + XBB_LIBUNISTRING_VERSION="1.2" # "1.1" + + # https://ftp.gnu.org/pub/gnu/gettext/ + XBB_GETTEXT_VERSION="0.22" + + # https://github.com/telmich/gpm/tags + # https://github.com/xpack-dev-tools/gpm/tags + XBB_GPM_VERSION="1.20.7-1" + + # https://ftp.gnu.org/gnu/readline/ + XBB_READLINE_VERSION="8.2" + + # https://sourceware.org/pub/bzip2/ + XBB_BZIP2_VERSION="1.0.8" + + # https://github.com/libffi/libffi/releases + XBB_LIBFFI_VERSION="3.4.6" # "3.4.4" + + # https://www.bytereef.org/mpdecimal/download.html + XBB_MPDECIMAL_VERSION="2.5.1" + + # Required by a Python 3 module. + # https://www.sqlite.org/download.html + XBB_SQLITE_VERSION="3400100" # "3380200" + XBB_SQLITE_YEAR="2024" + + # Replacement for the old libcrypt.so.1; required by Python 3. + # https://github.com/besser82/libxcrypt/releases + XBB_LIBXCRYPT_VERSION="4.4.36" + + # https://www.openssl.org/source/ + XBB_OPENSSL_VERSION="3.3.0" # "1.1.1v" + + # ------------------------------------------------------------------------- + + # Download GCC earlier, to have time to run the multilib generator. + gcc_cross_download + gcc_cross_generate_riscv_multilib_file + + # ------------------------------------------------------------------------- + + gcc_cross_build_common + + # ------------------------------------------------------------------------- + elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][3][.]0-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][2][.]0-.* ]] then # ------------------------------------------------------------------------- From 8187433bf539abb54b9f155c6a5f56be694a5585 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 6 May 2024 23:51:22 +0300 Subject: [PATCH 26/76] VERSION 14.0.1-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index ddac4d6..ed4f494 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -13.2.0-2 +14.0.1-1 From 3132305b150daafeec7f7bba52c48edb5988b6a1 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 12:33:29 +0300 Subject: [PATCH 27/76] versioning.sh: python 3.11.8 --- scripts/versioning.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 4ae6d58..4d49930 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -196,7 +196,7 @@ function application_build_versioned_components() # 3.12.2 fails with `libreadline.so.7: undefined symbol: UP` # https://stackoverflow.com/questions/46881581/libreadline-so-7-undefined-symbol-up # TODO: investigate - export XBB_PYTHON3_VERSION="3.11.4" # "3.12.2" # "3.11.4" # "3.10.4" + export XBB_PYTHON3_VERSION="3.11.8" # "3.11.4" export XBB_PYTHON3_VERSION_MAJOR=$(xbb_get_version_major "${XBB_PYTHON3_VERSION}") export XBB_PYTHON3_VERSION_MINOR=$(xbb_get_version_minor "${XBB_PYTHON3_VERSION}") From add5acec8d6179704c309f889fa7cf3cf3d9af4c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 12:34:09 +0300 Subject: [PATCH 28/76] versioning.sh: version regex --- scripts/versioning.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 4d49930..a6403de 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -42,8 +42,8 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- # In reverse chronological order. - if [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.]0-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.]0-.* ]] || \ + if [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] then @@ -207,7 +207,7 @@ function application_build_versioned_components() XBB_LIBICONV_VERSION="1.17" # https://zlib.net/fossils/ - XBB_ZLIB_VERSION="1.3.1" # "1.2.13" # "1.2.12" + XBB_ZLIB_VERSION="1.3.1" # "1.2.13" # https://gmplib.org/download/gmp/ # Arm: In `gmp-h.in` search for `__GNU_MP_VERSION`. @@ -291,8 +291,8 @@ function application_build_versioned_components() gcc_cross_build_common # ------------------------------------------------------------------------- - elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][3][.]0-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 13[.][2][.]0-.* ]] + elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][3][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][2][.].*-.* ]] then # ------------------------------------------------------------------------- @@ -525,7 +525,7 @@ function application_build_versioned_components() gcc_cross_build_common # ------------------------------------------------------------------------- - elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][2][.]0-.* ]] + elif [[ ${XBB_RELEASE_VERSION} =~ 12[.][2][.].*-.* ]] then # ------------------------------------------------------------------------- From 364ec29ebcdd1cdb08f21cf538c4d25bb3e47b39 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 17:27:09 +0300 Subject: [PATCH 29/76] VERSION 14.1.0 --- README-MAINTAINER.md | 68 ++++++++++++++++++++++---------------------- README.md | 18 ++++++------ package.json | 2 +- scripts/VERSION | 2 +- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index eab89e3..c53fbfe 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -101,8 +101,8 @@ update the dependencies in `package.json`. ### Identify the main GCC version -Determine the GCC version (like `13.2.0`) and update the `scripts/VERSION` -file; the format is `13.2.0-2`. The fourth digit is the number of the +Determine the GCC version (like `14.1.0`) and update the `scripts/VERSION` +file; the format is `14.1.0-1`. The fourth digit is the number of the the xPack GNU RISC-V Embedded GCC release number of this version. ### Fix possible open issues @@ -111,7 +111,7 @@ Check GitHub issues and pull requests: - -and fix them; assign them to a milestone (like `13.2.0-2`). +and fix them; assign them to a milestone (like `14.1.0-1`). ### Check `README.md` @@ -121,7 +121,7 @@ but in the version specific release page. ### Update versions in `README` files -Update both full 5 numbers (`13.2.0-2.1`) and short 3 numbers (`13.2.0`) +Update both full 5 numbers (`14.1.0-1.1`) and short 3 numbers (`14.1.0`) versions in: - update version in `README-MAINTAINER.md` @@ -129,14 +129,14 @@ versions in: ### Update version in `package.json` to a pre-release -Use the new version, suffixed by `pre`, like `13.2.0-2.pre`. +Use the new version, suffixed by `pre`, like `14.1.0-1.pre`. ### Update `CHANGELOG.md` - open the `CHANGELOG.md` file - check if all previous fixed issues are in -- add a new entry like _* v13.2.0-2 prepared_ -- commit with a message like _prepare v13.2.0-2_ +- add a new entry like _* v14.1.0-1 prepared_ +- commit with a message like _prepare v14.1.0-1_ ### Update the version specific code @@ -227,8 +227,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/darwin-x64/deploy total 262456 --rw-r--r-- 1 ilg staff 131934771 Aug 23 01:57 xpack-riscv-none-elf-gcc-13.2.0-2-darwin-x64.tar.gz --rw-r--r-- 1 ilg staff 118 Aug 23 01:57 xpack-riscv-none-elf-gcc-13.2.0-2-darwin-x64.tar.gz.sha +-rw-r--r-- 1 ilg staff 131934771 Aug 23 01:57 xpack-riscv-none-elf-gcc-14.1.0-1-darwin-x64.tar.gz +-rw-r--r-- 1 ilg staff 118 Aug 23 01:57 xpack-riscv-none-elf-gcc-14.1.0-1-darwin-x64.tar.gz.sha ``` #### Apple Silicon macOS @@ -261,8 +261,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/darwin-arm64/deploy total 263048 --rw-r--r-- 1 ilg staff 128160032 Aug 23 01:22 xpack-riscv-none-elf-gcc-13.2.0-2-darwin-arm64.tar.gz --rw-r--r-- 1 ilg staff 120 Aug 23 01:22 xpack-riscv-none-elf-gcc-13.2.0-2-darwin-arm64.tar.gz.sha +-rw-r--r-- 1 ilg staff 128160032 Aug 23 01:22 xpack-riscv-none-elf-gcc-14.1.0-1-darwin-arm64.tar.gz +-rw-r--r-- 1 ilg staff 120 Aug 23 01:22 xpack-riscv-none-elf-gcc-14.1.0-1-darwin-arm64.tar.gz.sha ``` #### Intel GNU/Linux @@ -297,8 +297,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/linux-x64/deploy total 138680 --rw-r--r-- 1 ilg ilg 142003499 Aug 22 23:14 xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz --rw-r--r-- 1 ilg ilg 117 Aug 22 23:14 xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz.sha +-rw-r--r-- 1 ilg ilg 142003499 Aug 22 23:14 xpack-riscv-none-elf-gcc-14.1.0-1-linux-x64.tar.gz +-rw-r--r-- 1 ilg ilg 117 Aug 22 23:14 xpack-riscv-none-elf-gcc-14.1.0-1-linux-x64.tar.gz.sha ``` ##### Build the Intel Windows binaries @@ -324,8 +324,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/win32-x64/deploy total 150400 --rw-r--r-- 1 ilg ilg 153999860 Aug 22 23:06 xpack-riscv-none-elf-gcc-13.2.0-2-win32-x64.zip --rw-r--r-- 1 ilg ilg 114 Aug 22 23:06 xpack-riscv-none-elf-gcc-13.2.0-2-win32-x64.zip.sha +-rw-r--r-- 1 ilg ilg 153999860 Aug 22 23:06 xpack-riscv-none-elf-gcc-14.1.0-1-win32-x64.zip +-rw-r--r-- 1 ilg ilg 114 Aug 22 23:06 xpack-riscv-none-elf-gcc-14.1.0-1-win32-x64.zip.sha ``` #### Arm GNU/Linux 64-bit @@ -358,8 +358,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/linux-arm64/deploy total 135604 --rw-r--r-- 1 ilg ilg 138853247 Aug 22 19:26 xpack-riscv-none-elf-gcc-13.2.0-2-linux-arm64.tar.gz --rw-r--r-- 1 ilg ilg 119 Aug 22 19:26 xpack-riscv-none-elf-gcc-13.2.0-2-linux-arm64.tar.gz.sha +-rw-r--r-- 1 ilg ilg 138853247 Aug 22 19:26 xpack-riscv-none-elf-gcc-14.1.0-1-linux-arm64.tar.gz +-rw-r--r-- 1 ilg ilg 119 Aug 22 19:26 xpack-riscv-none-elf-gcc-14.1.0-1-linux-arm64.tar.gz.sha ``` #### Arm GNU/Linux 32-bit @@ -390,8 +390,8 @@ archive and its SHA signature, created in the `deploy` folder: ```console $ ls -l ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/build/linux-arm/deploy total 129736 --rw-r--r-- 1 ilg ilg 132843190 Aug 22 19:15 xpack-riscv-none-elf-gcc-13.2.0-2-linux-arm.tar.gz --rw-r--r-- 1 ilg ilg 117 Aug 22 19:15 xpack-riscv-none-elf-gcc-13.2.0-2-linux-arm.tar.gz.sha +-rw-r--r-- 1 ilg ilg 132843190 Aug 22 19:15 xpack-riscv-none-elf-gcc-14.1.0-1-linux-arm.tar.gz +-rw-r--r-- 1 ilg ilg 117 Aug 22 19:15 xpack-riscv-none-elf-gcc-14.1.0-1-linux-arm.tar.gz.sha ``` ### Update README-MAINTAINER listing output @@ -642,8 +642,8 @@ git clone \ - check version: ```sh -.../riscv-none-elf-gcc-13.2.0-2.1/bin/riscv-none-elf-gcc --version -riscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 13.2.0 +.../riscv-none-elf-gcc-14.1.0-1.1/bin/riscv-none-elf-gcc --version +riscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 14.1.0 ``` - in a separate workspace, Import → General → Existing Projects into Workspace @@ -670,7 +670,7 @@ riscv-none-elf-gcc (xPack GNU RISC-V Embedded GCC x86_64) 13.2.0 ## Create a new GitHub pre-release draft -- in `CHANGELOG.md`, add the release date and a message like _* v13.2.0-2 released_ +- in `CHANGELOG.md`, add the release date and a message like _* v14.1.0-1 released_ - commit with _CHANGELOG update_ - check and possibly update the `templates/body-github-release-liquid.md` - push the `xpack-develop` branch @@ -681,8 +681,8 @@ The workflows results and logs are available from the The result is a [draft pre-release](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/) -tagged like **v13.2.0-2** (mind the dash in the middle!) and -named like **xPack GNU RISC-V Embedded GCC v13.2.0-2** (mind the dash), +tagged like **v14.1.0-1** (mind the dash in the middle!) and +named like **xPack GNU RISC-V Embedded GCC v14.1.0-1** (mind the dash), with all binaries attached. - edit the draft and attach it to the `xpack-develop` branch (important!) @@ -705,7 +705,7 @@ If any, refer to closed ## Update the preview Web - commit the `develop` branch of `xpack/web-jekyll` GitHub repo; - use a message like _xPack GNU RISC-V Embedded GCC v13.2.0-2 released_ + use a message like _xPack GNU RISC-V Embedded GCC v14.1.0-1 released_ - push to GitHub - wait for the GitHub Pages build to complete - the preview web is @@ -746,18 +746,18 @@ watching this project. - compare the SHA sums with those shown by `cat *.sha` - check the executable names - commit all changes, use a message like - _package.json: update urls for 13.2.0-2 release_ (without _v_) + _package.json: update urls for 14.1.0-1 release_ (without _v_) ## Publish on the npmjs.com server - select the `xpack-develop` branch - check the latest commits `npm run git-log` -- update `CHANGELOG.md`, add a line like _* v13.2.0-2.1 published on npmjs.com_ -- commit with a message like _CHANGELOG: publish npm v13.2.0-2.1_ +- update `CHANGELOG.md`, add a line like _* v14.1.0-1.1 published on npmjs.com_ +- commit with a message like _CHANGELOG: publish npm v14.1.0-1.1_ - `npm pack` and check the content of the archive, which should list only the `package.json`, the `README.md`, `LICENSE` and `CHANGELOG.md`; possibly adjust `.npmignore` -- `npm version 13.2.0-2.1`; the first 4 numbers are the same as the +- `npm version 14.1.0-1.1`; the first 4 numbers are the same as the GitHub release; the fifth number is the npm specific version - the commits and the tag should have been pushed by the `postversion` script; if not, push them with `git push origin --tags` @@ -786,12 +786,12 @@ The tests results are available from the When the release is considered stable, promote it as `latest`: - `npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc` -- `npm dist-tag add @xpack-dev-tools/riscv-none-elf-gcc@13.2.0-2.1 latest` +- `npm dist-tag add @xpack-dev-tools/riscv-none-elf-gcc@14.1.0-1.1 latest` - `npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc` In case the previous version is not functional and needs to be unpublished: -- `npm unpublish @xpack-dev-tools/riscv-none-elf-gcc@13.2.0-2.1` +- `npm unpublish @xpack-dev-tools/riscv-none-elf-gcc@14.1.0-1.1` ## Update the Web @@ -813,7 +813,7 @@ In case the previous version is not functional and needs to be unpublished: - in a separate browser windows, open [X/Twitter](https://twitter.com) - using the `@xpack_project` account -- paste the release name like **xPack GNU RISC-V Embedded GCC v13.2.0-2 released** +- paste the release name like **xPack GNU RISC-V Embedded GCC v14.1.0-1 released** - paste the link to the Web page [release](https://xpack.github.io/riscv-none-elf-gcc/releases/) - click the **Tweet** button @@ -841,9 +841,9 @@ Add a new topic in the **Announcements** category of the [RISC-V forums]). ```console -Subject: xPack GNU RISC-V Embedded GCC v13.2.0-2 released +Subject: xPack GNU RISC-V Embedded GCC v14.1.0-1 released -Version 13.2.0-2 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release. +Version 14.1.0-1 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release. https://xpack.github.io/blog/2022/05/14/riscv-none-elf-gcc-v11-3-0-1-released/ ``` diff --git a/README.md b/README.md index cc370a1..e4e3793 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ After install, the package should create a structure like this (only the first two depth levels are shown): ```console -$ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/13.2.0-2/.content/ -/Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/13.2.0-2/.content/ +$ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/14.1.0-1/.content/ +/Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/14.1.0-1/.content/ ├── README.md ├── bin │   ├── riscv-none-elf-addr2line @@ -123,7 +123,7 @@ $ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/13.2. │   ├── riscv-none-elf-elfedit │   ├── riscv-none-elf-g++ │   ├── riscv-none-elf-gcc -│   ├── riscv-none-elf-gcc-13.2.0 +│   ├── riscv-none-elf-gcc-14.1.0 │   ├── riscv-none-elf-gcc-ar │   ├── riscv-none-elf-gcc-nm │   ├── riscv-none-elf-gcc-ranlib @@ -187,7 +187,7 @@ $ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/13.2. │   ├── lib │   └── share └── share - └── gcc-13.2.0 + └── gcc-14.1.0 19 directories, 58 files ``` @@ -226,16 +226,16 @@ For more details please read the ### Versioning The version strings used by the GCC project are three number strings -like `13.2.0`; to this string the xPack distribution adds a four number, +like `14.1.0`; to this string the xPack distribution adds a four number, but since semver allows only three numbers, all additional ones can be added only as pre-release strings, separated by a dash, -like `13.2.0-2`. +like `14.1.0-1`. When published as a npm package, the version gets -a fifth number, like `13.2.0-2.1`. +a fifth number, like `14.1.0-1.1`. Since adherence of third party packages to semver is not guaranteed, -it is recommended to use semver expressions like `^13.2.0` and `~13.2.0` -with caution, and prefer exact matches, like `13.2.0-2.1`. +it is recommended to use semver expressions like `^14.1.0` and `~14.1.0` +with caution, and prefer exact matches, like `14.1.0-1.1`. ## Maintainer info diff --git a/package.json b/package.json index 82b5a9d..b8df254 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xpack-dev-tools/riscv-none-elf-gcc", - "version": "13.2.0-2.1", + "version": "14.1.0-1.1.pre", "description": "A binary xPack with the GNU RISC-V Embedded GCC executables", "main": "", "scripts": { diff --git a/scripts/VERSION b/scripts/VERSION index ed4f494..e58387a 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -14.0.1-1 +14.1.0-1 From 972686a0b55519f039912342ee98bbdb7795e071 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 21:13:49 +0300 Subject: [PATCH 30/76] versioning.sh: python 3.12.2 --- scripts/versioning.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index a6403de..79998b9 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -193,10 +193,7 @@ function application_build_versioned_components() # Requires `scripts/helper/extras/python/pyconfig-win-3.11.4.h` & # `python3-config-win.sh` - # 3.12.2 fails with `libreadline.so.7: undefined symbol: UP` - # https://stackoverflow.com/questions/46881581/libreadline-so-7-undefined-symbol-up - # TODO: investigate - export XBB_PYTHON3_VERSION="3.11.8" # "3.11.4" + export XBB_PYTHON3_VERSION="3.12.2" # "3.11.8" # "3.11.4" export XBB_PYTHON3_VERSION_MAJOR=$(xbb_get_version_major "${XBB_PYTHON3_VERSION}") export XBB_PYTHON3_VERSION_MINOR=$(xbb_get_version_minor "${XBB_PYTHON3_VERSION}") From 471249b2a6f053bcf24aaa63ac1bfc27c19a700d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 21:14:19 +0300 Subject: [PATCH 31/76] application.sh: 14.1 no longer pre-release --- scripts/application.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index aafec87..e81948c 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -29,7 +29,8 @@ XBB_APPLICATION_HAS_FLEX_PACKAGE="y" # XBB_APPLICATION_BOOTSTRAP_ONLY="y" -XBB_APPLICATION_TEST_PRERELEASE="y" +# To download from the dedicated git branch instead of the released archive. +# XBB_APPLICATION_TEST_PRERELEASE="y" # ----------------------------------------------------------------------------- From 10618ce603648edd9e5ac7b1cbe03eb31e15dc58 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 21:18:34 +0300 Subject: [PATCH 32/76] README update --- README-MAINTAINER.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index c53fbfe..cf11191 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -175,6 +175,7 @@ For Intel macOS, first run the build on the development machine ```sh # Update the build scripts. +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git @@ -244,6 +245,7 @@ caffeinate ssh xbbma Update the build scripts (or clone them at the first use): ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -279,6 +281,7 @@ caffeinate ssh xbbli Update the build scripts (or clone them at the first use): ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -306,6 +309,7 @@ total 138680 Clean the build folder and prepare the docker container: ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -340,6 +344,7 @@ caffeinate ssh xbbla Update the build scripts (or clone them at the first use): ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -374,6 +379,7 @@ caffeinate ssh xbbla32 Update the build scripts (or clone them at the first use): ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ xpm run link-deps -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ From fd204fcc6c2750bffb10deb2eb297606acebf8a5 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 7 May 2024 21:34:35 +0300 Subject: [PATCH 33/76] README update --- README-MAINTAINER.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index cf11191..030beeb 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -211,6 +211,7 @@ caffeinate ssh xbbmi Repeat the same steps as before. ```sh +rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ From c9bd0cda8eb0472fcc9d08727d79a0896984eb3c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Wed, 8 May 2024 11:51:22 +0300 Subject: [PATCH 34/76] README update --- README-MAINTAINER.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index 030beeb..7ab8235 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -175,7 +175,7 @@ For Intel macOS, first run the build on the development machine ```sh # Update the build scripts. -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git @@ -211,7 +211,7 @@ caffeinate ssh xbbmi Repeat the same steps as before. ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -246,7 +246,7 @@ caffeinate ssh xbbma Update the build scripts (or clone them at the first use): ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -282,7 +282,7 @@ caffeinate ssh xbbli Update the build scripts (or clone them at the first use): ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -310,7 +310,7 @@ total 138680 Clean the build folder and prepare the docker container: ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -345,7 +345,7 @@ caffeinate ssh xbbla Update the build scripts (or clone them at the first use): ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ @@ -380,7 +380,7 @@ caffeinate ssh xbbla32 Update the build scripts (or clone them at the first use): ```sh -rm -rf ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ +rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ xpm run link-deps -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ From 1105bbbc9ab8e138803740cc36e1e3fe9ca19d22 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 9 May 2024 00:03:38 +0300 Subject: [PATCH 35/76] package.json: add gcc to macOS --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b8df254..dc370c6 100644 --- a/package.json +++ b/package.json @@ -259,6 +259,7 @@ ], "devDependencies": { "@xpack-dev-tools/clang": "17.0.6-1.1", + "@xpack-dev-tools/gcc": "13.2.0-2.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, From f4f2e9f2457f9f8eeb19cdcb0d8af672bb01739f Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 9 May 2024 00:03:52 +0300 Subject: [PATCH 36/76] USE_GCC_FOR_GCC_ON_MACOS="y" --- scripts/application.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/application.sh b/scripts/application.sh index e81948c..c1defba 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -32,6 +32,8 @@ XBB_APPLICATION_HAS_FLEX_PACKAGE="y" # To download from the dedicated git branch instead of the released archive. # XBB_APPLICATION_TEST_PRERELEASE="y" +XBB_APPLICATION_USE_GCC_FOR_GCC_ON_MACOS="y" + # ----------------------------------------------------------------------------- # Normally should be commented out. Enable it only during tests, From 8581752234744457ede702b0e5990f5bc23a86ab Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 16 May 2024 09:12:52 +0300 Subject: [PATCH 37/76] application.sh: no need for USE_GCC_FOR_GCC_ON_MACOS --- scripts/application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index c1defba..7754125 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -32,7 +32,7 @@ XBB_APPLICATION_HAS_FLEX_PACKAGE="y" # To download from the dedicated git branch instead of the released archive. # XBB_APPLICATION_TEST_PRERELEASE="y" -XBB_APPLICATION_USE_GCC_FOR_GCC_ON_MACOS="y" +# XBB_APPLICATION_USE_GCC_FOR_GCC_ON_MACOS="y" # ----------------------------------------------------------------------------- From 23fa248915810927235ae8dba6b0d0e4833f19df Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 16 May 2024 09:21:13 +0300 Subject: [PATCH 38/76] READMEs update --- README-MAINTAINER.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index 7ab8235..8fe65cd 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -174,6 +174,8 @@ For Intel macOS, first run the build on the development machine (`wksi`, a recent macOS): ```sh +export XBB_ENVIRONMENT_WITH_TESTS="n" + # Update the build scripts. rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull From a235aeb7b543f0b181ca1369b67dac8b88f52c22 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sat, 18 May 2024 12:59:11 +0300 Subject: [PATCH 39/76] package.json: XBB_ENVIRONMENT_SKIP_CHECKS --- package-lock.json | 29 ++++++----------------------- package.json | 2 +- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 22b2c05..8723826 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@xpack-dev-tools/riscv-none-elf-gcc", - "version": "13.2.0-2.1", - "lockfileVersion": 2, + "version": "14.1.0-1.1.pre", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@xpack-dev-tools/riscv-none-elf-gcc", - "version": "13.2.0-2.1", + "version": "14.1.0-1.1.pre", "license": "MIT", "devDependencies": { "liquidjs": "^10.9.2" @@ -22,9 +22,9 @@ } }, "node_modules/liquidjs": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.9.2.tgz", - "integrity": "sha512-ygPCgYyiFKQNyRi/CK3s3U5RimosBtrIq7TaMYK5ek93mUl9CZ6xxqw2T+1G4kVc9dAmwI71bWLQNKRToV8SsQ==", + "version": "10.10.2", + "resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.10.2.tgz", + "integrity": "sha512-UcuTUexKg/8CmX6I5KNghk13pl3c8Rqhm+WSWqrc17pQP9LjpYPpOLDKG9OMBeHDBQ70yyn/GOqyZ/EKJ4z5yg==", "dev": true, "dependencies": { "commander": "^10.0.0" @@ -41,22 +41,5 @@ "url": "https://opencollective.com/liquidjs" } } - }, - "dependencies": { - "commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "dev": true - }, - "liquidjs": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/liquidjs/-/liquidjs-10.9.2.tgz", - "integrity": "sha512-ygPCgYyiFKQNyRi/CK3s3U5RimosBtrIq7TaMYK5ek93mUl9CZ6xxqw2T+1G4kVc9dAmwI71bWLQNKRToV8SsQ==", - "dev": true, - "requires": { - "commander": "^10.0.0" - } - } } } diff --git a/package.json b/package.json index dc370c6..3c9039e 100644 --- a/package.json +++ b/package.json @@ -218,7 +218,7 @@ "mkdir -pv ${HOME}/.local/xPacks ${HOME}/.cache/xPacks ${HOME}/Work/cache", "mkdir -pv ${HOME}/.wine", "docker rm --force {{ properties.containerName }}", - "docker create --name {{ properties.containerName }} --tty --hostname docker --volume $(pwd):$(pwd) --volume ${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git:${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git --volume ${HOME}/.cache/xPacks:${HOME}/.cache/xPacks --volume ${HOME}/Work/cache:${HOME}/Work/cache --volume ${HOME}/.wine:${HOME}/.wine --workdir $(pwd) {{ properties.dockerImage }}", + "docker create --name {{ properties.containerName }} --tty --hostname docker --env XBB_ENVIRONMENT_SKIP_CHECKS=${XBB_ENVIRONMENT_SKIP_CHECKS:-} --volume $(pwd):$(pwd) --volume ${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git:${HOME}/Work/xpack-dev-tools/xbb-helper-xpack.git --volume ${HOME}/.cache/xPacks:${HOME}/.cache/xPacks --volume ${HOME}/Work/cache:${HOME}/Work/cache --volume ${HOME}/.wine:${HOME}/.wine --workdir $(pwd) {{ properties.dockerImage }}", "docker start {{ properties.containerName }}", "docker exec {{ properties.containerName }} {{ properties.force32 }} npm install --location=global xpm@{{ properties.xpm-version }}", "docker exec {{ properties.containerName }} {{ properties.force32 }} userdel node", From 71394743a1d0df5b4f34a5532701b2781650e274 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sat, 18 May 2024 13:04:57 +0300 Subject: [PATCH 40/76] READMEs update --- README-MAINTAINER.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index 8fe65cd..d178477 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -174,7 +174,7 @@ For Intel macOS, first run the build on the development machine (`wksi`, a recent macOS): ```sh -export XBB_ENVIRONMENT_WITH_TESTS="n" +export XBB_ENVIRONMENT_SKIP_CHECKS="y" # Update the build scripts. rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json From 4d6f1756ada134c2d3a211e5ef8d21419e26798d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sat, 18 May 2024 22:17:32 +0300 Subject: [PATCH 41/76] versioning.sh: add version 11.5 --- scripts/versioning.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 79998b9..59e25cc 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -42,7 +42,8 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- # In reverse chronological order. - if [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ + if [[ ${XBB_RELEASE_VERSION} =~ 11[.][5][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] then From 4cb7ecca39421fcd17673016f9cdd5bb0251c378 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 19 May 2024 23:42:22 +0300 Subject: [PATCH 42/76] versioning.sh: unify -cross.git.patch --- scripts/versioning.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 59e25cc..5001583 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -159,10 +159,10 @@ function application_build_versioned_components() XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" # For the mingw abort() patch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" # The Apple Silicon host patches are already in for 12.x. - # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" # check_patch "${GCC_PATCH_FILE_NAME}" # https://www.sourceware.org/ftp/newlib/index.html @@ -185,7 +185,7 @@ function application_build_versioned_components() XBB_GDB_ARCHIVE_URL="https://ftp.gnu.org/gnu/gdb/${XBB_GDB_ARCHIVE_NAME}" # Mandatory, otherwise gdb-py3 is not relocatable. - XBB_GDB_PATCH_FILE_NAME="gdb-${XBB_GDB_VERSION}-cross.git.patch" + XBB_GDB_PATCH_FILE_NAME="gdb-${XBB_GDB_VERSION}.git.patch" check_patch "${XBB_GDB_PATCH_FILE_NAME}" # https://www.python.org/ftp/python/ From 9379baac0206f62fb75e32a063b931b63df7cbf8 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 20 May 2024 00:58:07 +0300 Subject: [PATCH 43/76] Revert "versioning.sh: unify -cross.git.patch" This reverts commit 4cb7ecca39421fcd17673016f9cdd5bb0251c378. --- scripts/versioning.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 5001583..59e25cc 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -159,10 +159,10 @@ function application_build_versioned_components() XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" # For the mingw abort() patch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" # The Apple Silicon host patches are already in for 12.x. - # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" + # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" # check_patch "${GCC_PATCH_FILE_NAME}" # https://www.sourceware.org/ftp/newlib/index.html @@ -185,7 +185,7 @@ function application_build_versioned_components() XBB_GDB_ARCHIVE_URL="https://ftp.gnu.org/gnu/gdb/${XBB_GDB_ARCHIVE_NAME}" # Mandatory, otherwise gdb-py3 is not relocatable. - XBB_GDB_PATCH_FILE_NAME="gdb-${XBB_GDB_VERSION}.git.patch" + XBB_GDB_PATCH_FILE_NAME="gdb-${XBB_GDB_VERSION}-cross.git.patch" check_patch "${XBB_GDB_PATCH_FILE_NAME}" # https://www.python.org/ftp/python/ From 8a6df10564640cc6f02d612eb0effbdb151f0b15 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 20 May 2024 00:58:56 +0300 Subject: [PATCH 44/76] versioning.sh: unify -cross.git.patch --- scripts/versioning.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 59e25cc..7184d3e 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -159,7 +159,7 @@ function application_build_versioned_components() XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" # For the mingw abort() patch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" # The Apple Silicon host patches are already in for 12.x. # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" From a6531870164e0fc7400a76a506de9980a3cc9589 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 20 May 2024 14:26:12 +0300 Subject: [PATCH 45/76] package.json: remove gcc from darwin --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 3c9039e..bb07869 100644 --- a/package.json +++ b/package.json @@ -259,7 +259,6 @@ ], "devDependencies": { "@xpack-dev-tools/clang": "17.0.6-1.1", - "@xpack-dev-tools/gcc": "13.2.0-2.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, From e1c60977f1c3a60f2903d3077b870eb9990d114b Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Thu, 23 May 2024 14:15:09 +0300 Subject: [PATCH 46/76] package.json: clang 16.0.6-1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bb07869..a5fc73e 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,7 @@ "common-actions-native" ], "devDependencies": { - "@xpack-dev-tools/clang": "17.0.6-1.1", + "@xpack-dev-tools/clang": "16.0.6-1.1", "@xpack-dev-tools/realpath": "9.4.0-1.1", "@xpack-dev-tools/sed": "4.9.0-3.1" }, From afe3b9b32dc8197f2afa4212de2ecb207ad04a4e Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 17 Jun 2024 23:51:26 +0300 Subject: [PATCH 47/76] application.sh: update --- scripts/application.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index 7754125..097e842 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -54,6 +54,7 @@ XBB_GITHUB_ORG="${XBB_GITHUB_ORG:-"xpack-dev-tools"}" XBB_GITHUB_REPO="${XBB_GITHUB_REPO:-"${XBB_APPLICATION_LOWER_CASE_NAME}-xpack"}" XBB_GITHUB_PRE_RELEASES="${XBB_GITHUB_PRE_RELEASES:-"pre-releases"}" -XBB_NPM_PACKAGE="${XBB_NPM_PACKAGE:-"@xpack-dev-tools/${XBB_APPLICATION_LOWER_CASE_NAME}@next"}" +XBB_NPM_PACKAGE="${XBB_NPM_PACKAGE:-"@xpack-dev-tools/${XBB_APPLICATION_LOWER_CASE_NAME}@${XBB_NPM_PACKAGE_VERSION:-"next"}"}" + # ----------------------------------------------------------------------------- From 2bcc84812ddaab9629ea74e0de5d28146faa4337 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 17 Jun 2024 23:53:02 +0300 Subject: [PATCH 48/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a5fc73e..70fe612 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.0.9" + "@xpack-dev-tools/xbb-helper": "^2.1.20" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From 8ae3fbeb73c988784e8d555247720c9f07c408b5 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 17 Jun 2024 23:57:59 +0300 Subject: [PATCH 49/76] package.json: rework generate workflows --- package.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 70fe612..d066d49 100644 --- a/package.json +++ b/package.json @@ -134,12 +134,12 @@ "generate-workflows": [ "mkdir -p .github/workflows/", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/body-github-pre-releases-test.md .github/workflows/", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-liquid.yml > .github/workflows/build-all.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-xbbli-liquid.yml > .github/workflows/build-xbbli.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-xbbla32-liquid.yml > .github/workflows/build-xbbla32.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-xbbla-liquid.yml > .github/workflows/build-xbbla.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-xbbmi-liquid.yml > .github/workflows/build-xbbmi.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-xbbma-liquid.yml > .github/workflows/build-xbbma.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-darwin-x64-liquid.yml > .github/workflows/build-darwin-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-darwin-arm64-liquid.yml > .github/workflows/build-darwin-arm64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-x64-liquid.yml > .github/workflows/build-linux-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-win32-x64-liquid.yml > .github/workflows/build-win32-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-arm-liquid.yml > .github/workflows/build-linux-arm.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-arm64-liquid.yml > .github/workflows/build-linux-arm64.yml", "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-prime-liquid.yml > .github/workflows/test-prime.yml", "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-docker-linux-intel-liquid.yml > .github/workflows/test-docker-linux-intel.yml", "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-docker-linux-arm-liquid.yml > .github/workflows/test-docker-linux-arm.yml", @@ -151,12 +151,12 @@ "cp xpacks/@xpack-dev-tools/xbb-helper/templates/build.sh scripts/", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/test.sh scripts/" ], - "trigger-workflow-build-all": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", - "trigger-workflow-build-xbbmi": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbmi --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", - "trigger-workflow-build-xbbma": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbma --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", - "trigger-workflow-build-xbbli": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbli --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", - "trigger-workflow-build-xbbla": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbla --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", - "trigger-workflow-build-xbbla32": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbla32 --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-darwin-x64": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-darwin-x64.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-darwin-arm64": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-darwin-arm64.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-linux-x64": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-x64.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-win32-x64": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-win32-x64.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-linux-arm64": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-arm64.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", + "trigger-workflow-build-linux-arm": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-arm.yml --xpm-version {{ properties.xpm-version }} --loglevel {{ properties.xpm-install-loglevel }}", "trigger-workflow-test-prime": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-test-prime.sh", "trigger-workflow-test-docker-linux-intel": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-test-docker-linux-intel.sh", "trigger-workflow-test-docker-linux-arm": "bash xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-test-docker-linux-arm.sh", From 1f735e6d343358053039054d1d427c20802f44e9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 18 Jun 2024 00:13:02 +0300 Subject: [PATCH 50/76] READMEs update --- README-MAINTAINER.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index d178477..42be758 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -515,20 +515,22 @@ rm -rf ~/Work/xpack-dev-tools/*/build To trigger the GitHub Actions builds, use the xPack actions: -- `trigger-workflow-build-xbbmi` -- `trigger-workflow-build-xbbma` -- `trigger-workflow-build-xbbli` -- `trigger-workflow-build-xbbla` -- `trigger-workflow-build-xbbla32` +- `trigger-workflow-build-darwin-x64` +- `trigger-workflow-build-darwin-arm64` +- `trigger-workflow-build-linux-x64` +- `trigger-workflow-build-win32-x64` +- `trigger-workflow-build-linux-arm64` +- `trigger-workflow-build-linux-arm` -This is equivalent to: +These are equivalent to: ```sh -bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbmi -bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbma -bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbli -bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbla -bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --machine xbbla32 +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-darwin-x64.yml +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-darwin-arm64.yml +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-x64.yml +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-win32-x64.yml +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-arm64.yml +bash ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/xpacks/@xpack-dev-tools/xbb-helper/github-actions/trigger-workflow-build.sh --workflow build-linux-arm.yml ``` These scripts require the `GITHUB_API_DISPATCH_TOKEN` variable to be present From 6aca757527e8e08bf3123982eb2cb0f62f2bad6e Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 17:59:02 +0300 Subject: [PATCH 51/76] re-generate workflows --- .github/workflows/build-all.yml | 473 ------------------ ...build-xbbma.yml => build-darwin-arm64.yml} | 92 +++- .../{build-xbbmi.yml => build-darwin-x64.yml} | 94 +++- ...{build-xbbla32.yml => build-linux-arm.yml} | 84 +++- ...{build-xbbla.yml => build-linux-arm64.yml} | 84 +++- .../{build-xbbli.yml => build-linux-x64.yml} | 113 ++--- .github/workflows/build-win32-x64.yml | 186 +++++++ .github/workflows/deep-clean.yml | 89 +++- .github/workflows/publish-release.yml | 16 +- .github/workflows/test-docker-linux-arm.yml | 180 ++++--- .github/workflows/test-docker-linux-intel.yml | 80 +-- .github/workflows/test-prime.yml | 210 ++++++-- .github/workflows/test-xpm.yml | 224 ++++++--- 13 files changed, 1090 insertions(+), 835 deletions(-) delete mode 100644 .github/workflows/build-all.yml rename .github/workflows/{build-xbbma.yml => build-darwin-arm64.yml} (55%) rename .github/workflows/{build-xbbmi.yml => build-darwin-x64.yml} (54%) rename .github/workflows/{build-xbbla32.yml => build-linux-arm.yml} (58%) rename .github/workflows/{build-xbbla.yml => build-linux-arm64.yml} (58%) rename .github/workflows/{build-xbbli.yml => build-linux-x64.yml} (61%) create mode 100644 .github/workflows/build-win32-x64.yml diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml deleted file mode 100644 index 0137807..0000000 --- a/.github/workflows/build-all.yml +++ /dev/null @@ -1,473 +0,0 @@ -# ----------------------------------------------------------------------------- -# DO NOT EDIT! Generated from xpacks/@xpack-dev-tools/xbb-helper/templates/*. -# -# This file is part of the xPack distribution. -# (https://xpack.github.io) -# Copyright (c) 2021 Liviu Ionescu. -# -# Permission to use, copy, modify, and/or distribute this software -# for any purpose is hereby granted, under the terms of the MIT license. -# ----------------------------------------------------------------------------- - -# https://help.github.com/en/actions -# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners - -# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch -# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch -# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event - -# ----------------------------------------------------------------------------- - - -name: 'Build xPack GNU RISC-V Embedded GCC' - -on: - workflow_dispatch: - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs - inputs: - version: - description: 'The semver of the release' - required: false - type: string - default: 'current' - xpm_version: - description: 'The version of xpm to install' - required: false - type: string - default: 'next' - xpm_install_loglevel: - description: 'Optional loglevel for xpm install' - required: false - default: 'info' - type: choice - options: - - silent - - warn - - info - - verbose - - debug - - trace - xpm_install_options: - description: 'Optional switches to pass to xpm install' - required: false - type: string - default: '' - -jobs: - - linux-x64-x: - name: 'Linux Intel X - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 5760 # 4 days - runs-on: [self-hosted, linux, x64] - container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 - defaults: - run: - shell: bash - - steps: - - name: 'Environment' - run: | - uname -a - lsb_release -sd - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - name: 'Build Linux x64 binary' - timeout-minutes: 1440 - run: | - xpm install --config linux-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config linux-x64 - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/linux-x64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - - - linux-x64-w: - name: 'Linux Intel W - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 5760 # 4 days - runs-on: [self-hosted, linux, x64] - container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 - defaults: - run: - shell: bash - - steps: - - name: 'Environment' - run: | - uname -a - lsb_release -sd - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - name: 'Build Windows x64 binary' - timeout-minutes: 1440 - run: | - xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config win32-x64 - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/win32-x64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - - - linux-arm: - name: 'Linux Arm 32 - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 2880 # 2 days - runs-on: [self-hosted, linux, arm, xbbla32] - container: - image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.1 - defaults: - run: - shell: bash - - steps: - - name: 'Environment' - run: | - uname -a - lsb_release -sd - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - name: 'Build Linux arm32 binary' - timeout-minutes: 1440 - run: | - xpm install --config linux-arm --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config linux-arm - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/linux-arm/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - - linux-arm64: - name: 'Linux Arm 64 - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 2880 # 2 days - runs-on: [self-hosted, linux, arm64, xbbla] - container: - image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.1 - defaults: - run: - shell: bash - - steps: - - name: 'Environment' - run: | - uname -a - lsb_release -sd - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - name: 'Build Linux arm64 binary' - timeout-minutes: 1440 - run: | - xpm install --config linux-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config linux-arm64 - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/linux-arm64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - - macos-x64: - name: 'macOS Intel - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 2880 # 2 days - - runs-on: [self-hosted, macos, intel] - - steps: - - name: 'Environment' - run: | - uname -a - sw_vers - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - - name: 'Build macOS x64 binary' - timeout-minutes: 1440 - run: | - xpm install --config darwin-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config darwin-x64 - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/darwin-x64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - - macos-arm64: - name: 'macOS Arm - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 2880 # 2 days - - runs-on: [self-hosted, macos, apple] - - steps: - - name: 'Environment' - run: | - uname -a - sw_vers - echo "whoami: $(whoami)" - echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" - ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* - - - name: 'Checkout project' - uses: actions/checkout@v1 # v1 for old Git - with: - fetch-depth: 3 - - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - - - name: 'Build macOS arm64 binary' - timeout-minutes: 1440 - run: | - xpm install --config darwin-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config darwin-arm64 - - - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifacts: 'build/darwin-arm64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) diff --git a/.github/workflows/build-xbbma.yml b/.github/workflows/build-darwin-arm64.yml similarity index 55% rename from .github/workflows/build-xbbma.yml rename to .github/workflows/build-darwin-arm64.yml index 2f2eae0..5894dcc 100644 --- a/.github/workflows/build-xbbma.yml +++ b/.github/workflows/build-darwin-arm64.yml @@ -16,10 +16,14 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- -name: 'Build xPack GNU RISC-V Embedded GCC xbbma' +name: 'Build xPack GNU RISC-V Embedded GCC darwin-arm64' on: workflow_dispatch: @@ -52,29 +56,41 @@ on: required: false type: string default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' jobs: - macos-arm64: - name: 'macOS Arm - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + darwin-arm64-build: + name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, macos, apple] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a sw_vers - echo "whoami: $(whoami)" + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + ls -l /Library/Developer/CommandLineTools/usr/include || true echo "pwd: $(pwd)" + echo "whoami: $(whoami)" echo "node: $(node --version)" echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - name: 'Checkout project' uses: actions/checkout@v1 # v1 for old Git @@ -91,15 +107,22 @@ jobs: timeout-minutes: 1440 run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - name: 'Build macOS arm64 binary' + - name: 'Build darwin-arm64 binaries' timeout-minutes: 1440 run: | xpm install --config darwin-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config darwin-arm64 - + + - name: Upload platform artefacts + uses: actions/upload-artifact@v4 + with: + name: deploy-darwin-arm64 + path: ${{ github.workspace }}/build/darwin-arm64/deploy/* + overwrite: true + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: true artifacts: 'build/darwin-arm64/deploy/*' @@ -120,3 +143,50 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + + darwin-arm64-test: + name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md + runs-on: macos-14 + needs: [darwin-arm64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_15.4.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v4 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 + + - name: 'Run ${{ github.event.inputs.version }} native test' + run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-arm64 + path: ${{ github.workspace }}/build/darwin-arm64/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/build-xbbmi.yml b/.github/workflows/build-darwin-x64.yml similarity index 54% rename from .github/workflows/build-xbbmi.yml rename to .github/workflows/build-darwin-x64.yml index 1807f61..0fa9f19 100644 --- a/.github/workflows/build-xbbmi.yml +++ b/.github/workflows/build-darwin-x64.yml @@ -16,10 +16,14 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- -name: 'Build xPack GNU RISC-V Embedded GCC xbbmi' +name: 'Build xPack GNU RISC-V Embedded GCC darwin-x64' on: workflow_dispatch: @@ -52,32 +56,44 @@ on: required: false type: string default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' jobs: - macos-x64: - name: 'macOS Intel - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + darwin-x64-build: + name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, macos, intel] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a sw_vers - echo "whoami: $(whoami)" + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + ls -l /Library/Developer/CommandLineTools/usr/include || true echo "pwd: $(pwd)" + echo "whoami: $(whoami)" echo "node: $(node --version)" echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - name: 'Checkout project' - uses: actions/checkout@v1 + uses: actions/checkout@v1 # v1 for old Git with: fetch-depth: 3 @@ -91,15 +107,22 @@ jobs: timeout-minutes: 1440 run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - name: 'Build macOS x64 binary' + - name: 'Build darwin-x64 binaries' timeout-minutes: 1440 run: | xpm install --config darwin-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config darwin-x64 - + + - name: Upload platform artefacts + uses: actions/upload-artifact@v4 + with: + name: deploy-darwin-x64 + path: ${{ github.workspace }}/build/darwin-x64/deploy/* + overwrite: true + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: true artifacts: 'build/darwin-x64/deploy/*' @@ -120,3 +143,50 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + + darwin-x64-test: + name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md + runs-on: macos-12 + needs: [darwin-x64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_14.2.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v4 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 + + - name: 'Run ${{ github.event.inputs.version }} native test' + run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-x64 + path: ${{ github.workspace }}/build/darwin-x64/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/build-xbbla32.yml b/.github/workflows/build-linux-arm.yml similarity index 58% rename from .github/workflows/build-xbbla32.yml rename to .github/workflows/build-linux-arm.yml index 4482aa4..746cb24 100644 --- a/.github/workflows/build-xbbla32.yml +++ b/.github/workflows/build-linux-arm.yml @@ -16,10 +16,14 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- -name: 'Build xPack GNU RISC-V Embedded GCC xbbla32' +name: 'Build xPack GNU RISC-V Embedded GCC linux-arm' on: workflow_dispatch: @@ -52,21 +56,25 @@ on: required: false type: string default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' jobs: - linux-arm: - name: 'Linux Arm 32 - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + linux-arm-build: + name: 'linux-arm riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm, xbbla32] container: - image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.1.1 + image: ilegeul/ubuntu:arm32v7-18.04-xbb-v5.2.1 defaults: run: shell: bash steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd @@ -75,10 +83,12 @@ jobs: echo "node: $(node --version)" echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - name: 'Checkout project' uses: actions/checkout@v1 # v1 for old Git @@ -95,15 +105,22 @@ jobs: timeout-minutes: 1440 run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - name: 'Build Linux arm32 binary' + - name: 'Build linux-arm binaries' timeout-minutes: 1440 run: | xpm install --config linux-arm --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-arm + - name: Upload platform artefacts + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: deploy-linux-arm + path: ${{ github.workspace }}/build/linux-arm/deploy/* + overwrite: true + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.13.0 # v1.13 for 18.04 with: allowUpdates: true artifacts: 'build/linux-arm/deploy/*' @@ -124,3 +141,50 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + + linux-arm-test: + name: 'linux-arm riscv-none-elf-gcc@${{ github.event.inputs.version }} test' + runs-on: [self-hosted, linux, arm, xbbla32] + needs: [linux-arm-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v3 # v3 for 18.04 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 + + - name: 'Run ${{ github.event.inputs.version }} docker test' + uses: docker://arm32v7/node:lts-slim # Currently based on debian:12-slim + with: + entrypoint: /bin/bash # /usr/bin/linux32 + args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release + + - name: Upload platform tests report + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: tests-report-linux-arm + path: ${{ github.workspace }}/build/linux-arm/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/build-xbbla.yml b/.github/workflows/build-linux-arm64.yml similarity index 58% rename from .github/workflows/build-xbbla.yml rename to .github/workflows/build-linux-arm64.yml index 79daf55..0780275 100644 --- a/.github/workflows/build-xbbla.yml +++ b/.github/workflows/build-linux-arm64.yml @@ -16,10 +16,14 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- -name: 'Build xPack GNU RISC-V Embedded GCC xbbla' +name: 'Build xPack GNU RISC-V Embedded GCC linux-arm64' on: workflow_dispatch: @@ -52,21 +56,25 @@ on: required: false type: string default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' jobs: - linux-arm64: - name: 'Linux Arm 64 - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + linux-arm64-build: + name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm64, xbbla] container: - image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.1.1 + image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.2.1 defaults: run: shell: bash steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd @@ -75,10 +83,12 @@ jobs: echo "node: $(node --version)" echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - name: 'Checkout project' uses: actions/checkout@v1 # v1 for old Git @@ -95,15 +105,22 @@ jobs: timeout-minutes: 1440 run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - name: 'Build Linux arm64 binary' + - name: 'Build linux-arm64 binaries' timeout-minutes: 1440 run: | xpm install --config linux-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-arm64 + - name: Upload platform artefacts + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: deploy-linux-arm64 + path: ${{ github.workspace }}/build/linux-arm64/deploy/* + overwrite: true + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.13.0 # v1.13 for 18.04 with: allowUpdates: true artifacts: 'build/linux-arm64/deploy/*' @@ -124,3 +141,50 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + + linux-arm64-test: + name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + runs-on: [self-hosted, linux, arm64, xbbla] + needs: [linux-arm64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v3 # v3 for 18.04 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 + + - name: 'Run ${{ github.event.inputs.version }} docker test' + uses: docker://node:lts-slim # Currently based on debian:12-slim + with: + entrypoint: /bin/bash + args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release + + - name: Upload platform tests report + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: tests-report-linux-arm64 + path: ${{ github.workspace }}/build/linux-arm64/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/build-xbbli.yml b/.github/workflows/build-linux-x64.yml similarity index 61% rename from .github/workflows/build-xbbli.yml rename to .github/workflows/build-linux-x64.yml index f4e4fc1..f5f90bb 100644 --- a/.github/workflows/build-xbbli.yml +++ b/.github/workflows/build-linux-x64.yml @@ -16,10 +16,14 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- -name: 'Build xPack GNU RISC-V Embedded GCC xbbli' +name: 'Build xPack GNU RISC-V Embedded GCC linux-x64' on: workflow_dispatch: @@ -52,21 +56,25 @@ on: required: false type: string default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' jobs: - linux-x64-x: - name: 'Linux Intel X - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + linux-x64-build: + name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.2.1 defaults: run: shell: bash steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd @@ -75,13 +83,15 @@ jobs: echo "node: $(node --version)" echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - name: 'Checkout project' - uses: actions/checkout@v1 + uses: actions/checkout@v1 # v1 for old Git with: fetch-depth: 3 @@ -95,15 +105,22 @@ jobs: timeout-minutes: 1440 run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - - name: 'Build Linux x64 binary' + - name: 'Build linux-x64 binaries' timeout-minutes: 1440 run: | xpm install --config linux-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-x64 + - name: Upload platform artefacts + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: deploy-linux-x64 + path: ${{ github.workspace }}/build/linux-x64/deploy/* + overwrite: true + - name: 'Publish pre-release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.13.0 # v1.13 for 18.04 with: allowUpdates: true artifacts: 'build/linux-x64/deploy/*' @@ -125,72 +142,40 @@ jobs: # For just in case absolute paths remain unprocessed. run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) - linux-x64-w: - name: 'Linux Intel W - riscv-none-elf-gcc ${{ github.event.inputs.version }} build' - timeout-minutes: 5760 # 4 days - runs-on: [self-hosted, linux, x64] - container: - image: ilegeul/ubuntu:amd64-18.04-xbb-v5.1.1 - defaults: - run: - shell: bash + linux-x64-test: + name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + runs-on: ubuntu-22.04 + needs: [linux-x64-build] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" - echo "node: $(node --version)" - echo "npm: $(npm --version)" ls -lLA - env | sort | egrep '^[^ \t]+=' - - - name: 'Clean working area' - run: rm -rf * .git* + env | sort | grep -E '^[^ \t]+=' - name: 'Checkout project' - uses: actions/checkout@v1 + uses: actions/checkout@v4 with: fetch-depth: 3 - - name: 'Install xpm' - timeout-minutes: 1440 - run: | - npm install --location=global xpm@${{ github.event.inputs.xpm_version }} - xpm --version - - - name: 'Install project dependencies' - timeout-minutes: 1440 - run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 - - name: 'Build Windows x64 binary' - timeout-minutes: 1440 - run: | - xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} - xpm run build --config win32-x64 + - name: 'Run ${{ github.event.inputs.version }} native test' + run: bash scripts/test.sh --image github-actions-ubuntu-latest --version ${{ github.event.inputs.version }} --base-url pre-release - - name: 'Publish pre-release' - # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + - name: Upload platform tests report + uses: actions/upload-artifact@v4 with: - allowUpdates: true - artifacts: 'build/win32-x64/deploy/*' - bodyFile: '.github/workflows/body-github-pre-releases-test.md' - commit: 'master' - draft: false - name: 'Test binaries' - omitBodyDuringUpdate: true - omitDraftDuringUpdate: true - omitNameDuringUpdate: true - owner: 'xpack-dev-tools' - prerelease: true - replacesArtifacts: true - repo: 'pre-releases' - tag: 'test' - token: ${{ secrets.PUBLISH_TOKEN }} - - - name: 'Rename working area' - # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + name: tests-report-linux-x64 + path: ${{ github.workspace }}/build/linux-x64/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/build-win32-x64.yml b/.github/workflows/build-win32-x64.yml new file mode 100644 index 0000000..ccdbe51 --- /dev/null +++ b/.github/workflows/build-win32-x64.yml @@ -0,0 +1,186 @@ +# ----------------------------------------------------------------------------- +# DO NOT EDIT! Generated from xpacks/@xpack-dev-tools/xbb-helper/templates/*. +# +# This file is part of the xPack distribution. +# (https://xpack.github.io) +# Copyright (c) 2021 Liviu Ionescu. +# +# Permission to use, copy, modify, and/or distribute this software +# for any purpose is hereby granted, under the terms of the MIT license. +# ----------------------------------------------------------------------------- + +# https://help.github.com/en/actions +# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners + +# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch +# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch +# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event + +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + +# ----------------------------------------------------------------------------- + + +name: 'Build xPack GNU RISC-V Embedded GCC win32-x64' + +on: + workflow_dispatch: + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs + inputs: + version: + description: 'The semver of the release' + required: false + type: string + default: 'current' + xpm_version: + description: 'The version of xpm to install' + required: false + type: string + default: 'next' + xpm_install_loglevel: + description: 'Optional loglevel for xpm install' + required: false + default: 'info' + type: choice + options: + - silent + - warn + - info + - verbose + - debug + - trace + xpm_install_options: + description: 'Optional switches to pass to xpm install' + required: false + type: string + default: '' + helper-git-ref: + description: 'The helper branch, tag or SHA to checkout' + required: false + default: 'xpack-develop' + +jobs: + + win32-x64-build: + name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' + timeout-minutes: 5760 # 4 days + runs-on: [self-hosted, linux, x64] + container: + image: ilegeul/ubuntu:amd64-18.04-xbb-v5.2.1 + defaults: + run: + shell: bash + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + echo "node: $(node --version)" + echo "npm: $(npm --version)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* + + - name: 'Checkout project' + uses: actions/checkout@v1 # v1 for old Git + with: + fetch-depth: 3 + + - name: 'Install xpm' + timeout-minutes: 1440 + run: | + npm install --location=global xpm@${{ github.event.inputs.xpm_version }} + xpm --version + + - name: 'Install project dependencies' + timeout-minutes: 1440 + run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} + + - name: 'Build win32-x64 binaries' + timeout-minutes: 1440 + run: | + xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} + xpm run build --config win32-x64 + + - name: Upload platform artefacts + uses: actions/upload-artifact@v3 # v3 for 18.04 + with: + name: deploy-win32-x64 + path: ${{ github.workspace }}/build/win32-x64/deploy/* + overwrite: true + + - name: 'Publish pre-release' + # https://github.com/ncipollo/release-action + uses: ncipollo/release-action@v1.13.0 # v1.13 for 18.04 + with: + allowUpdates: true + artifacts: 'build/win32-x64/deploy/*' + bodyFile: '.github/workflows/body-github-pre-releases-test.md' + commit: 'master' + draft: false + name: 'Test binaries' + omitBodyDuringUpdate: true + omitDraftDuringUpdate: true + omitNameDuringUpdate: true + owner: 'xpack-dev-tools' + prerelease: true + replacesArtifacts: true + repo: 'pre-releases' + tag: 'test' + token: ${{ secrets.PUBLISH_TOKEN }} + + - name: 'Rename working area' + # For just in case absolute paths remain unprocessed. + run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + + win32-x64-test: + name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + runs-on: windows-2022 + needs: [win32-x64-build] + defaults: + run: + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell + shell: bash # for -- + + steps: + - name: 'Show environment' + run: | + uname -a + systeminfo # lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v4 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: xpacks/@xpack-dev-tools/xbb-helper + ref: ${{ github.event.inputs.helper-git-ref }} + fetch-depth: 3 + + - name: 'Run ${{ github.event.inputs.version }} native test' + run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-win32-x64 + path: ${{ github.workspace }}/build/win32-x64/artefacts/tests-report-*.md + overwrite: true diff --git a/.github/workflows/deep-clean.yml b/.github/workflows/deep-clean.yml index bdf47c6..0ded94d 100644 --- a/.github/workflows/deep-clean.yml +++ b/.github/workflows/deep-clean.yml @@ -16,6 +16,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -32,99 +36,130 @@ on: jobs: linux-x64: - name: 'Linux Intel - riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + timeout-minutes: 5760 # 4 days + runs-on: [self-hosted, linux, x64] + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* + + + + win32-x64: + name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' timeout-minutes: 5760 # 4 days runs-on: [self-hosted, linux, x64] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* linux-arm: - name: 'Linux Arm 32 - riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + name: 'linux-arm riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* linux-arm64: - name: 'Linux Arm 64 - riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - macos-x64: - name: 'macOS Intel - riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + darwin-x64: + name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, macos, intel] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a sw_vers # lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* - macos-arm64: - name: 'macOS Arm - riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' + darwin-arm64: + name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} clean' timeout-minutes: 2880 # 2 days runs-on: [self-hosted, macos, apple] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a sw_vers # lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - - name: 'Clean working area' - run: rm -rf * .git* + - name: 'Clean working area' # Mandatory for self-hosted runners. + run: | + chmod -Rf a+w * || true + rm -rf * .git* diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d2357d6..37425d0 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -16,6 +16,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -39,23 +43,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -70,7 +74,7 @@ jobs: - name: 'Publish release' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: false bodyFile: '.github/workflows/body-github-release.md' @@ -93,7 +97,7 @@ jobs: - name: 'Publish artifacts' # https://github.com/ncipollo/release-action - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v1.14.0 with: allowUpdates: true artifacts: '~/Downloads/xpack-binaries/riscv-none-elf-gcc/*' diff --git a/.github/workflows/test-docker-linux-arm.yml b/.github/workflows/test-docker-linux-arm.yml index 10c57b0..4bcb3b9 100644 --- a/.github/workflows/test-docker-linux-arm.yml +++ b/.github/workflows/test-docker-linux-arm.yml @@ -17,6 +17,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -68,26 +72,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -119,26 +125,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -159,32 +167,34 @@ jobs: # https://hub.docker.com/r/redhat/ubi8 - # `-static` disabled, there is no static libc.a. + # For `-static` to work, explicit static packages must be present. redhat-arm64: name: 'arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test on RedHat stable' runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -199,32 +209,34 @@ jobs: # https://en.wikipedia.org/wiki/Fedora_version_history # https://hub.docker.com/_/fedora - # `-static` disabled, there is no static libc.a. + # For `-static` to work, explicit static packages must be present. fedora-arm64: name: 'arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test on Fedora stable' runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -257,26 +269,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -302,26 +316,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -340,26 +356,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -386,26 +404,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -424,26 +444,28 @@ jobs: runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -455,33 +477,35 @@ jobs: with: entrypoint: /bin/bash args: /github/workspace/scripts/test.sh --image opensuse/tumbleweed --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - + # https://hub.docker.com/r/arm32v7/ubuntu/ ubuntu-arm: name: 'arm riscv-none-elf-gcc ${{ github.event.inputs.version }} test on Ubuntu stable' runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -512,26 +536,28 @@ jobs: runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -556,26 +582,28 @@ jobs: runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -594,26 +622,28 @@ jobs: runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -640,26 +670,28 @@ jobs: runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -675,5 +707,5 @@ jobs: # - https://hub.docker.com/r/arm32v7/opensuse # arm32v7/opensuse:latest is leap 42.3 and fails due to http: URLs # (zypper lr -u) - + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-docker-linux-intel.yml b/.github/workflows/test-docker-linux-intel.yml index 9eebbd8..26b3ecc 100644 --- a/.github/workflows/test-docker-linux-intel.yml +++ b/.github/workflows/test-docker-linux-intel.yml @@ -17,6 +17,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -68,23 +72,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -116,23 +120,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -152,29 +156,29 @@ jobs: args: /github/workspace/scripts/test.sh --image debian:buster --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} # https://hub.docker.com/r/redhat/ubi8 - # `-static` disabled, there is no static libc.a. + # For `-static` to work, explicit static packages must be present. redhat-x64: name: 'x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test on RedHat stable' runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -195,23 +199,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -244,23 +248,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -284,23 +288,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -319,23 +323,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -368,23 +372,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -403,23 +407,23 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -437,5 +441,5 @@ jobs: # - https://hub.docker.com/r/gentoo/portage # docker://gentoo/portage - exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown. - + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-prime.yml b/.github/workflows/test-prime.yml index d7255ae..6ea6cc6 100644 --- a/.github/workflows/test-prime.yml +++ b/.github/workflows/test-prime.yml @@ -17,6 +17,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -40,27 +44,27 @@ on: jobs: - linux-x64: - name: 'Linux x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + linux-x64-test: + name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -69,32 +73,41 @@ jobs: - name: 'Run ${{ github.event.inputs.version }} native test' run: bash scripts/test.sh --image github-actions-ubuntu-latest --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - - linux-arm64: - name: 'Linux arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-x64 + path: ${{ github.workspace }}/build/linux-x64/artefacts/tests-report-*.md + overwrite: true + + linux-arm64-test: + name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -102,36 +115,45 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} docker test' - uses: docker://ubuntu:22.04 + uses: docker://node:lts-slim # Currently based on debian:12-slim with: entrypoint: /bin/bash args: /github/workspace/scripts/test.sh --image ubuntu:22.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - - linux-arm32: - name: 'Linux arm32 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-arm64 + path: ${{ github.workspace }}/build/linux-arm64/artefacts/tests-report-*.md + overwrite: true + + linux-arm-test: + name: 'linux-arm riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -139,36 +161,53 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} docker test' - uses: docker://arm32v7/ubuntu:22.04 + uses: docker://arm32v7/node:lts-slim # Currently based on debian:12-slim with: entrypoint: /bin/bash # /usr/bin/linux32 - args: /github/workspace/scripts/test.sh --image arm32v7/ubuntu:22.04 --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - - macos-x64: - name: 'macOS x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-arm + path: ${{ github.workspace }}/build/linux-arm/artefacts/tests-report-*.md + overwrite: true + + darwin-x64-test: + name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md runs-on: macos-12 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a - sw_vers # lsb_release -sd + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_14.2.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -177,32 +216,49 @@ jobs: - name: 'Run ${{ github.event.inputs.version }} native test' run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - - macos-arm64: - name: 'macOS arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' - runs-on: [self-hosted, macos, apple] + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-x64 + path: ${{ github.workspace }}/build/darwin-x64/artefacts/tests-report-*.md + overwrite: true + + darwin-arm64-test: + name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md + runs-on: macos-14 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a - sw_vers # lsb_release -sd + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_15.4.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -211,9 +267,16 @@ jobs: - name: 'Run ${{ github.event.inputs.version }} native test' run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - - windows-x64: - name: 'Windows x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-arm64 + path: ${{ github.workspace }}/build/darwin-arm64/artefacts/tests-report-*.md + overwrite: true + + win32-x64-test: + name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: windows-2022 defaults: run: @@ -221,23 +284,23 @@ jobs: shell: bash # for -- steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a systeminfo # lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -246,5 +309,48 @@ jobs: - name: 'Run ${{ github.event.inputs.version }} native test' run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --base-url ${{ github.event.inputs.base_url }} - + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-win32-x64 + path: ${{ github.workspace }}/build/win32-x64/artefacts/tests-report-*.md + overwrite: true + + generate-tests-report: + name: 'Generate tests report for GNU RISC-V Embedded GCC@${{ github.event.inputs.version }}' + runs-on: ubuntu-22.04 + needs: [linux-x64-test, linux-arm64-test, linux-arm-test, darwin-x64-test, darwin-arm64-test, win32-x64-test] + + steps: + - name: Download platform test reports + uses: actions/download-artifact@v4 + with: + path: ${{ github.workspace }}/artefacts + merge-multiple: true + + - name: Concatenate platform test reports + run: | + ls -lR ${{ github.workspace }}/artefacts + touch ${{ github.workspace }}/artefacts/tests-report.md + echo "---" >>${{ github.workspace }}/artefacts/tests-report.md + echo "title: GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test results" >>${{ github.workspace }}/artefacts/tests-report.md + echo "permalink: /dev-tools/riscv-none-elf-gcc/tests/${{ github.event.inputs.version }}/" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "comments: true" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "date: $(date "+%Y-%m-%d %H:%M:%S %z")" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "---" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + (cd ${{ github.workspace }}; cat -s artefacts/tests-report-linux-x64.md artefacts/tests-report-linux-arm64.md artefacts/tests-report-linux-arm.md artefacts/tests-report-darwin-x64.md artefacts/tests-report-darwin-arm64.md artefacts/tests-report-win32-x64.md | tee -a artefacts/tests-report.md) + mv -v ${{ github.workspace }}/artefacts/tests-report.md ${{ github.workspace }}/artefacts/${{ github.event.inputs.version }}.md + + - name: Upload tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report + path: ${{ github.workspace }}/artefacts/${{ github.event.inputs.version }}.md + overwrite: true + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-xpm.yml b/.github/workflows/test-xpm.yml index a887f3a..cd574f9 100644 --- a/.github/workflows/test-xpm.yml +++ b/.github/workflows/test-xpm.yml @@ -17,6 +17,10 @@ # https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch # https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event +# https://github.com/actions/checkout +# https://github.com/actions/upload-artifact +# https://github.com/actions/download-artifact + # ----------------------------------------------------------------------------- @@ -25,10 +29,14 @@ name: 'Test xPack GNU RISC-V Embedded GCC via xpm' on: workflow_dispatch: inputs: - version: + package-version: description: 'The semver of the npm release' required: false default: 'next' + version: + description: 'The GitHub release version' + required: false + default: 'current' helper-git-ref: description: 'The helper branch, tag or SHA to checkout' required: false @@ -36,27 +44,27 @@ on: jobs: - linux-x64: - name: 'Linux Intel 64-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + linux-x64-test: + name: 'linux-x64 GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' runs-on: ubuntu-22.04 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -67,33 +75,42 @@ jobs: uses: docker://node:lts-slim with: entrypoint: /bin/bash - args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --xpm - - linux-arm64: - name: 'Linux Arm 64-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + args: /github/workspace/scripts/test.sh --image debian --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-x64 + path: ${{ github.workspace }}/build/linux-x64/artefacts/tests-report-*.md + overwrite: true + + linux-arm64-test: + name: 'linux-arm64 GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' runs-on: [self-hosted, linux, arm64, xbbla] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -101,36 +118,45 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} xpm docker test' - uses: docker://node:lts-slim + uses: docker://node:lts-slim # Currently based on debian:12-slim with: entrypoint: /bin/bash - args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --xpm - - linux-arm32: - name: 'Linux Arm 32-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + args: /github/workspace/scripts/test.sh --image debian --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-arm64 + path: ${{ github.workspace }}/build/linux-arm64/artefacts/tests-report-*.md + overwrite: true + + linux-arm-test: + name: 'linux-arm GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' runs-on: [self-hosted, linux, arm, xbbla32] steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -138,36 +164,52 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} xpm docker test' - uses: docker://arm32v7/node:lts-slim + uses: docker://arm32v7/node:lts-slim # Currently based on debian:12-slim with: entrypoint: /bin/bash # /usr/bin/linux32 - args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --xpm - - macos-x64: - name: 'macOS Intel 64-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + args: /github/workspace/scripts/test.sh --image debian --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-linux-arm + path: ${{ github.workspace }}/build/linux-arm/artefacts/tests-report-*.md + overwrite: true + + darwin-x64-test: + name: 'darwin-x64 GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' runs-on: macos-12 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a - sw_vers # lsb_release -sd + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_14.2.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -175,33 +217,49 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} xpm test' - run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --xpm - - macos-arm64: - name: 'macOS Arm 64-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' - runs-on: [self-hosted, macos, apple] + run: bash scripts/test.sh --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-x64 + path: ${{ github.workspace }}/build/darwin-x64/artefacts/tests-report-*.md + overwrite: true + + darwin-arm64-test: + name: 'darwin-arm64 GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + runs-on: macos-14 steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a - sw_vers # lsb_release -sd + sw_vers + ls -lA /Library/Developer/CommandLineTools/SDKs || true + ls -lA /Applications + sudo xcode-select --switch /Applications/Xcode_15.4.app + xcode-select --print-path + xcodebuild -version || true + pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true + clang++ -v echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' - name: 'Clean working area' # Mandatory for self-hosted runners. - run: rm -rf * .git* + run: | + chmod -Rf a+w * || true + rm -rf * .git* # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -209,10 +267,17 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} xpm test' - run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --xpm - - windows-x64: - name: 'Windows 64-bit GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' + run: bash scripts/test.sh --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-darwin-arm64 + path: ${{ github.workspace }}/build/darwin-arm64/artefacts/tests-report-*.md + overwrite: true + + win32-x64-test: + name: 'win32-x64 GNU RISC-V Embedded GCC@${{ github.event.inputs.version }} test' runs-on: windows-2022 defaults: run: @@ -220,23 +285,23 @@ jobs: shell: bash # for -- steps: - - name: 'Environment' + - name: 'Show environment' run: | uname -a systeminfo # lsb_release -sd echo "whoami: $(whoami)" echo "pwd: $(pwd)" ls -lLA - env | sort | egrep '^[^ \t]+=' + env | sort | grep -E '^[^ \t]+=' # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 3 - name: 'Checkout helper ${{ github.event.inputs.helper-git-ref }}' - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: xpack-dev-tools/xbb-helper-xpack path: xpacks/@xpack-dev-tools/xbb-helper @@ -244,6 +309,49 @@ jobs: fetch-depth: 3 - name: 'Run ${{ github.event.inputs.version }} xpm test' - run: bash scripts/test.sh --version ${{ github.event.inputs.version }} --xpm - + run: bash scripts/test.sh --package-version ${{ github.event.inputs.package-version }} --version ${{ github.event.inputs.version }} --xpm + + - name: Upload platform tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report-win32-x64 + path: ${{ github.workspace }}/build/win32-x64/artefacts/tests-report-*.md + overwrite: true + + generate-tests-report: + name: 'Generate tests report for GNU RISC-V Embedded GCC@${{ github.event.inputs.version }}' + runs-on: ubuntu-22.04 + needs: [linux-x64-test, linux-arm64-test, linux-arm-test, darwin-x64-test, darwin-arm64-test, win32-x64-test] + + steps: + - name: Download platform test reports + uses: actions/download-artifact@v4 + with: + path: ${{ github.workspace }}/artefacts + merge-multiple: true + + - name: Concatenate platform test reports + run: | + ls -lR ${{ github.workspace }}/artefacts + touch ${{ github.workspace }}/artefacts/tests-report.md + echo "---" >>${{ github.workspace }}/artefacts/tests-report.md + echo "title: GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} test results" >>${{ github.workspace }}/artefacts/tests-report.md + echo "permalink: /dev-tools/riscv-none-elf-gcc/tests/${{ github.event.inputs.version }}/" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "comments: true" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "date: $(date "+%Y-%m-%d %H:%M:%S %z")" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + echo "---" >>${{ github.workspace }}/artefacts/tests-report.md + echo >>${{ github.workspace }}/artefacts/tests-report.md + (cd ${{ github.workspace }}; cat -s artefacts/tests-report-linux-x64.md artefacts/tests-report-linux-arm64.md artefacts/tests-report-linux-arm.md artefacts/tests-report-darwin-x64.md artefacts/tests-report-darwin-arm64.md artefacts/tests-report-win32-x64.md | tee -a artefacts/tests-report.md) + mv -v ${{ github.workspace }}/artefacts/tests-report.md ${{ github.workspace }}/artefacts/${{ github.event.inputs.version }}.md + + - name: Upload tests report + uses: actions/upload-artifact@v4 + with: + name: tests-report + path: ${{ github.workspace }}/artefacts/${{ github.event.inputs.version }}.md + overwrite: true + # ----------------------------------------------------------------------------- From f963507dccdb844d04f6486ac75a9f05f017a711 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 17:59:16 +0300 Subject: [PATCH 52/76] templates/jekyll update --- scripts/templates/body-jekyll-release-post-part-2-liquid.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/templates/body-jekyll-release-post-part-2-liquid.md b/scripts/templates/body-jekyll-release-post-part-2-liquid.md index 2a2b439..3a49aa0 100644 --- a/scripts/templates/body-jekyll-release-post-part-2-liquid.md +++ b/scripts/templates/body-jekyll-release-post-part-2-liquid.md @@ -28,7 +28,7 @@ maintenance window for Long-Term Support (LTS) release on 31 May 2023. As a courtesy, the xPack GNU/Linux releases will continue to be based on Ubuntu 18.04 for another year. -From mid-2024 onwards, the GNU/Linux binaries will be built on **Debian 10**, +From 2025 onwards, the GNU/Linux binaries will be built on **Debian 10**, (**GLIBC 2.28**), and are also expected to run on RedHat 8. Users are urged to update their build and test infrastructure to From 15e03bce5a43086243cf2c8be105b24877f4fec9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 17:59:41 +0300 Subject: [PATCH 53/76] scripts: update from template --- scripts/test.sh | 13 +++++++++++-- scripts/tests/run.sh | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index c7da71c..f4e0268 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -53,6 +53,17 @@ tests_folder_path="$(dirname "${scripts_folder_path}")/tests" # ----------------------------------------------------------------------------- +export XBB_WHILE_RUNNING_SEPARATE_TESTS="y" + +# ----------------------------------------------------------------------------- +# Options must be parsed as early as possible, being used even in application.sh. + +source "${helper_folder_path}/scripts/test-parse-options.sh" + +tests_parse_options "$@" + +# ----------------------------------------------------------------------------- + source "${scripts_folder_path}/application.sh" # Common definitions. @@ -85,8 +96,6 @@ fi # ----------------------------------------------------------------------------- -tests_parse_options "$@" - tests_perform_common # Completed successfully. diff --git a/scripts/tests/run.sh b/scripts/tests/run.sh index c072508..46fa401 100644 --- a/scripts/tests/run.sh +++ b/scripts/tests/run.sh @@ -11,6 +11,9 @@ function tests_run_all() { + echo + echo "[${FUNCNAME[0]} $@]" + local test_bin_path="$1" binutils_cross_test "${test_bin_path}" "${XBB_APPLICATION_TARGET_TRIPLET}" From 7751cc63104067b4dcf4af55d4841ae60c7e6061 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 17:59:56 +0300 Subject: [PATCH 54/76] .npmignore update --- .npmignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.npmignore b/.npmignore index 2261f9b..760eabe 100644 --- a/.npmignore +++ b/.npmignore @@ -25,6 +25,7 @@ node_modules/ README-* LICENSE-* CONTRIBUTING** +NOTES.md wrappers/ extras/ From cb2592d1d2e2992c935ed5dc9bf47fe912926682 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 18:00:12 +0300 Subject: [PATCH 55/76] package.json: bump deps --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d066d49..7d5ef0c 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.1.20" + "@xpack-dev-tools/xbb-helper": "^2.1.35" }, "properties": { "appName": "GNU RISC-V Embedded GCC", @@ -108,7 +108,7 @@ "buildFolderRelativePathPosix": "{{ 'build' | path_posix_join: configuration.name | downcase }}", "commandBashBuild": "bash {{ properties.dbg }} scripts/build.sh --target {{ configuration.name }} --build-folder {{ properties.buildFolderRelativePathPosix }}", "xpm-version": "0.18.0", - "xpm-install-loglevel": "trace", + "xpm-install-loglevel": "info", "dbg": "" }, "actions": { From f0e6d1fb3820465cca73bfa6c4cb6fdc1f945bd6 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 18:48:12 +0300 Subject: [PATCH 56/76] prepare v14.1.0-1 --- CHANGELOG.md | 125 ++++++++++++++++++++++++++++++++++++++- scripts/versioning.sh | 134 ++++++++++-------------------------------- 2 files changed, 155 insertions(+), 104 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c81c6d0..4bb8d7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,132 @@ Entries in this file are in reverse chronological order. +## 2024-07-19 + +* v14.1.0-1 prepared +* cb2592d package.json: bump deps +* 7751cc6 .npmignore update +* 15e03bc scripts: update from template +* f963507 templates/jekyll update +* 6aca757 re-generate workflows + +## 2024-06-18 + +* 1f735e6 READMEs update + +## 2024-06-17 + +* 8ae3fbe package.json: rework generate workflows +* 2bcc848 package.json: bump deps +* afe3b9b application.sh: update + +## 2024-05-23 + +* e1c6097 package.json: clang 16.0.6-1.1 + +## 2024-05-20 + +* a653187 package.json: remove gcc from darwin +* 8a6df10 versioning.sh: unify -cross.git.patch +* 9379baa Revert "versioning.sh: unify -cross.git.patch" + +## 2024-05-19 + +* 4cb7ecc versioning.sh: unify -cross.git.patch + +## 2024-05-18 + +* 4d6f175 versioning.sh: add version 11.5 +* 7139474 READMEs update +* a235aeb package.json: XBB_ENVIRONMENT_SKIP_CHECKS + +## 2024-05-16 + +* 23fa248 READMEs update +* 8581752 application.sh: no need for USE_GCC_FOR_GCC_ON_MACOS + +## 2024-05-09 + +* f4f2e9f USE_GCC_FOR_GCC_ON_MACOS="y" +* 1105bbb package.json: add gcc to macOS + +## 2024-05-08 + +* c9bd0cd README update + +## 2024-05-07 + +* fd204fc README update +* 10618ce README update +* 471249b application.sh: 14.1 no longer pre-release +* 972686a versioning.sh: python 3.12.2 +* 364ec29 VERSION 14.1.0 +* add5ace versioning.sh: version regex +* 3132305 versioning.sh: python 3.11.8 + +## 2024-05-06 + +* 8187433 VERSION 14.0.1-1 +* f5b9177 versioning.sh: add 14.* +* 82df9f6 versioning.sh: use gcc_cross_build_common +* 1b48206 versioning.sh: compute XBB_GCC_VERSION_MINOR +* a811dce application.sh: add BOOTSTRAP_ONLY +* c8e47e6 application.sh: HAS_FLEX_PACKAGE="y" +* 2d92101 versioning.sh: no need for DISABLE_WIDEC="y" + +## 2024-05-02 + +* c6b3a44 package.json: clang 17.0.6-1.1 + +## 2024-04-22 + +* ecdf79c package.json: bump deps +* eaf5129 versioning.sh: avoid xz 5.6 + +## 2024-03-29 + +* f3f776f use XBB_APPLICATION_GCC_MULTILIB_LIST + +## 2024-03-22 + +* 32e55bc package.json: xpm-version 0.18.0 + +## 2024-03-08 + +* c4198bf package.json: xpm-version 0.18.0 + +## 2024-03-07 + +* da26c6d package.json: xpm-version 0.18.0 +* 41f97e8 package.json: bump + +## 2024-03-06 + +* 0a31021 body-jekyll update +* 5c04a4b package.json: bump deps + +## 2024-01-28 + +* 671428f ISSUE_TEMPLATE.md update +* 58c6c79 package.json: bump deps +* d1b89ad README update + +## 2023-12-03 + +* cacff03 package.json: bump deps +* e93a14a re-generate workflows + +## 2023-11-12 + +* 6b366bf package.json: bump deps +* b128a4f versioning.sh cosmetics + ## 2023-09-25 -* v13.2.0-2.1 published on npmjs.com +* 69ffceb body-jekyll update +* 773afc8 application.sh: disable multilib +* 89ccdda 13.2.0-2.1 +* 9a9b525 CHANGELOG: publish npm v13.2.0-2.1 * 43a97a9 package.json: update urls for 13.2.0-2 release * d7f3d7d README update * f715330 CHANGELOG update diff --git a/scripts/versioning.sh b/scripts/versioning.sh index 7184d3e..dc4d3db 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -41,24 +41,12 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- - # In reverse chronological order. - if [[ ${XBB_RELEASE_VERSION} =~ 11[.][5][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] + if [[ ${XBB_RELEASE_VERSION} =~ 11[.].*[.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 12[.].*[.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.].*[.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 14[.].*[.].*-.* ]] then - # ------------------------------------------------------------------------- - - if [ "${XBB_APPLICATION_TEST_PRERELEASE:-""}" == "y" ] - then - # https://github.com/gcc-mirror/gcc - XBB_GCC_GIT_URL="https://github.com/gcc-mirror/gcc.git" - XBB_GCC_GIT_BRANCH="releases/gcc-${XBB_GCC_VERSION_MAJOR}" - fi - - # ------------------------------------------------------------------------- - if [ "${XBB_APPLICATION_WITHOUT_MULTILIB:-""}" != "y" ] then # The SiFive list from 10.2 with a lot of non-c extras. @@ -141,6 +129,28 @@ function application_build_versioned_components() fi fi + fi + + # --------------------------------------------------------------------------- + + # In reverse chronological order. + if [[ ${XBB_RELEASE_VERSION} =~ 11[.][5][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] + then + + # ------------------------------------------------------------------------- + + if [ "${XBB_APPLICATION_TEST_PRERELEASE:-""}" == "y" ] + then + # https://github.com/gcc-mirror/gcc + XBB_GCC_GIT_URL="https://github.com/gcc-mirror/gcc.git" + XBB_GCC_GIT_BRANCH="releases/gcc-${XBB_GCC_VERSION_MAJOR}" + fi + + # ------------------------------------------------------------------------- + # https://ftp.gnu.org/gnu/binutils/ # https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.xz @@ -179,7 +189,7 @@ function application_build_versioned_components() # https://ftp.gnu.org/gnu/gdb/gdb-13.2.tar.xz # PATCH! - XBB_GDB_VERSION="14.2" # "13.2" + XBB_GDB_VERSION="15.1" # "14.2" # "13.2" XBB_GDB_SRC_FOLDER_NAME="gdb-${XBB_GDB_VERSION}" XBB_GDB_ARCHIVE_NAME="${XBB_GDB_SRC_FOLDER_NAME}.tar.xz" XBB_GDB_ARCHIVE_URL="https://ftp.gnu.org/gnu/gdb/${XBB_GDB_ARCHIVE_NAME}" @@ -225,7 +235,7 @@ function application_build_versioned_components() # https://sourceforge.net/projects/lzmautils/files/ # Avoid 5.6.[01]! - XBB_XZ_VERSION="5.4.6" # "5.4.4" + XBB_XZ_VERSION="5.4.7" # "5.4.4" # https://github.com/facebook/zstd/tags XBB_ZSTD_VERSION="1.5.6" # "1.5.5" @@ -248,7 +258,7 @@ function application_build_versioned_components() XBB_LIBUNISTRING_VERSION="1.2" # "1.1" # https://ftp.gnu.org/pub/gnu/gettext/ - XBB_GETTEXT_VERSION="0.22" + XBB_GETTEXT_VERSION="0.22.5" # https://github.com/telmich/gpm/tags # https://github.com/xpack-dev-tools/gpm/tags @@ -268,7 +278,7 @@ function application_build_versioned_components() # Required by a Python 3 module. # https://www.sqlite.org/download.html - XBB_SQLITE_VERSION="3400100" # "3380200" + XBB_SQLITE_VERSION="3460000" # "3400100" # "3380200" XBB_SQLITE_YEAR="2024" # Replacement for the old libcrypt.so.1; required by Python 3. @@ -276,7 +286,7 @@ function application_build_versioned_components() XBB_LIBXCRYPT_VERSION="4.4.36" # https://www.openssl.org/source/ - XBB_OPENSSL_VERSION="3.3.0" # "1.1.1v" + XBB_OPENSSL_VERSION="3.3.1" # "3.3.0" # "1.1.1v" # ------------------------------------------------------------------------- @@ -295,88 +305,6 @@ function application_build_versioned_components() # ------------------------------------------------------------------------- - if [ "${XBB_APPLICATION_WITHOUT_MULTILIB:-""}" != "y" ] - then - # The SiFive list from 10.2 with a lot of non-c extras. - # (including `rv32imaf-ilp32f--`). - if [ "${XBB_IS_DEVELOP}" != "y" ] - then - - # DO NOT add the combination that is already given as the default! - # rv32imac-ilp32-- \ - - # The `zicsr*zifencei` seem redundant for GCC 13, but are - # important for GCC 12. - XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ - rv32e-ilp32e--zicsr*zifencei \ - rv32ea-ilp32e--zicsr*zifencei \ - rv32eac-ilp32e--zicsr*zifencei \ - rv32ec-ilp32e--zicsr*zifencei \ - rv32em-ilp32e--zicsr*zifencei \ - rv32ema-ilp32e--zicsr*zifencei \ - rv32emac-ilp32e--zicsr*zifencei \ - rv32emc-ilp32e--zicsr*zifencei \ - \ - rv32i-ilp32--zicsr*zifencei \ - rv32ia-ilp32--zicsr*zifencei \ - rv32iac-ilp32--zicsr*zifencei \ - rv32iaf-ilp32f--zicsr*zifencei \ - rv32iafc-ilp32f--zicsr*zifencei \ - rv32iafd-ilp32d--zicsr*zifencei \ - rv32iafdc-ilp32d--zicsr*zifencei \ - rv32ic-ilp32--zicsr*zifencei \ - rv32if-ilp32f--zicsr*zifencei \ - rv32ifc-ilp32f--zicsr*zifencei \ - rv32ifd-ilp32d--zicsr*zifencei \ - rv32ifdc-ilp32d--zicsr*zifencei \ - rv32im-ilp32--zicsr*zifencei \ - rv32ima-ilp32--zicsr*zifencei \ - rv32imaf-ilp32f--zicsr*zifencei \ - rv32imafc-ilp32f--zicsr*zifencei \ - rv32imafd-ilp32d--zicsr*zifencei \ - rv32imafdc-ilp32d--zicsr*zifencei \ - rv32imc-ilp32--zicsr*zifencei \ - rv32imf-ilp32f--zicsr*zifencei \ - rv32imfc-ilp32f--zicsr*zifencei \ - rv32imfd-ilp32d--zicsr*zifencei \ - rv32imfdc-ilp32d--zicsr*zifencei \ - \ - rv64i-lp64--zicsr*zifencei \ - rv64ia-lp64--zicsr*zifencei \ - rv64iac-lp64--zicsr*zifencei \ - rv64iaf-lp64f--zicsr*zifencei \ - rv64iafc-lp64f--zicsr*zifencei \ - rv64iafd-lp64d--zicsr*zifencei \ - rv64iafdc-lp64d--zicsr*zifencei \ - rv64ic-lp64--zicsr*zifencei \ - rv64if-lp64f--zicsr*zifencei \ - rv64ifc-lp64f--zicsr*zifencei \ - rv64ifd-lp64d--zicsr*zifencei \ - rv64ifdc-lp64d--zicsr*zifencei \ - rv64im-lp64--zicsr*zifencei \ - rv64ima-lp64--zicsr*zifencei \ - rv64imac-lp64--zicsr*zifencei \ - rv64imaf-lp64f--zicsr*zifencei \ - rv64imafc-lp64f--zicsr*zifencei \ - rv64imafd-lp64d--zicsr*zifencei \ - rv64imafdc-lp64d--zicsr*zifencei \ - rv64imc-lp64--zicsr*zifencei \ - rv64imf-lp64f--zicsr*zifencei \ - rv64imfc-lp64f--zicsr*zifencei \ - rv64imfd-lp64d--zicsr*zifencei \ - rv64imfdc-lp64d--zicsr*zifencei \ - "} - else - # Short list used during development to save time. - # Skip: rv32imac-ilp32-- (see above). - XBB_GCC_MULTILIB_LIST=${XBB_APPLICATION_GCC_MULTILIB_LIST:-"\ - rv32emac-ilp32e-- \ - rv32ima-ilp32--zicsr*zifencei \ - rv64imac-lp64-- \ - "} - fi - fi - # https://ftp.gnu.org/gnu/binutils/ # https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.xz From 2d879f9a8a8fd214e97f6b9da575111409875544 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 19 Jul 2024 21:10:33 +0300 Subject: [PATCH 57/76] application.sh: re-enable multilib --- scripts/application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index 097e842..c93bd1c 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -38,7 +38,7 @@ XBB_APPLICATION_HAS_FLEX_PACKAGE="y" # Normally should be commented out. Enable it only during tests, # to save some build time. -XBB_APPLICATION_WITHOUT_MULTILIB="y" +# XBB_APPLICATION_WITHOUT_MULTILIB="y" # ----------------------------------------------------------------------------- From c182e2ad15f8df49f35d78c2553fb70f3e2b2c43 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sat, 20 Jul 2024 23:12:19 +0300 Subject: [PATCH 58/76] README update --- README-MAINTAINER.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index 42be758..424cb9a 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -385,6 +385,8 @@ Update the build scripts (or clone them at the first use): rm -f ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git/package-lock.json && \ git -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git pull && \ xpm run install -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ +git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull && \ +xpm link -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git && \ xpm run link-deps -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ \ xpm run deep-clean --config linux-arm -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git && \ From 591bd20eff27e8dbf83f7ddfc2e55d3cbcd7531e Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 21 Jul 2024 07:45:05 +0300 Subject: [PATCH 59/76] VERSION 13.3.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index e58387a..0bb01c7 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -14.1.0-1 +13.3.0-1 From a78b49863d2c3d03fa1b37bd46dbe3aef647e800 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 21 Jul 2024 14:44:16 +0300 Subject: [PATCH 60/76] README update --- README-MAINTAINER.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README-MAINTAINER.md b/README-MAINTAINER.md index 424cb9a..adb9395 100644 --- a/README-MAINTAINER.md +++ b/README-MAINTAINER.md @@ -198,7 +198,7 @@ For a debug build: xpm run build-develop-debug --config darwin-x64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -The build takes about 1h30 (with reduced multi-libs). +The build takes about 114 minutes (1h54) (with reduced multi-libs). When functional, push the `xpack-develop` branch to GitHub. @@ -225,7 +225,7 @@ xpm install --config darwin-x64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpa xpm run build-develop --config darwin-x64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 1h12 later, the output of the build script is a compressed +About 86 minutes (1h26) later, the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console @@ -260,7 +260,7 @@ xpm install --config darwin-arm64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-x xpm run build-develop --config darwin-arm64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 37 minutes later, the output of the build script is a compressed +About 51 minutes later, the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console @@ -297,7 +297,7 @@ xpm run docker-link-deps --config linux-x64 -C ~/Work/xpack-dev-tools/riscv-none xpm run docker-build-develop --config linux-x64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 46 minutes later, the output of the build script is a compressed +About 57 minutes later, the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console @@ -325,7 +325,7 @@ xpm run docker-link-deps --config win32-x64 -C ~/Work/xpack-dev-tools/riscv-none xpm run docker-build-develop --config win32-x64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 38 minutes later, the output of the build script is a compressed +About 43 minutes later, the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console @@ -360,7 +360,7 @@ xpm run docker-link-deps --config linux-arm64 -C ~/Work/xpack-dev-tools/riscv-no xpm run docker-build-develop --config linux-arm64 -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 5h02 later, the output of the build script is a compressed +About 373 minutes (6h13) later (98 minutes, 1h38m on ampere), the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console @@ -395,7 +395,7 @@ xpm run docker-link-deps --config linux-arm -C ~/Work/xpack-dev-tools/riscv-none xpm run docker-build-develop --config linux-arm -C ~/Work/xpack-dev-tools/riscv-none-elf-gcc-xpack.git ``` -About 4h51 later, the output of the build script is a compressed +About 362 minutes (6h02) later, the output of the build script is a compressed archive and its SHA signature, created in the `deploy` folder: ```console From 0a1afe957cc3089a62f390250a3cee0580cc5ede Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 21 Jul 2024 14:44:40 +0300 Subject: [PATCH 61/76] VERSION 12.4.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index 0bb01c7..e877ec0 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -13.3.0-1 +12.4.0-1 From 0987e9771516b5f213dcd7e02738bb779d8fedcb Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 21 Jul 2024 20:32:03 +0300 Subject: [PATCH 62/76] VERSION 11.5.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index e877ec0..b0bb0cb 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -12.4.0-1 +11.5.0-1 From 2e51c41f12c0be05a81c9071b90d790d1229f99d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Jul 2024 16:04:00 +0300 Subject: [PATCH 63/76] versioning.sh: use cross.git on all except macos for 11.5 --- scripts/versioning.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index dc4d3db..d2ebad8 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -168,8 +168,15 @@ function application_build_versioned_components() XBB_GCC_ARCHIVE_NAME="${XBB_GCC_SRC_FOLDER_NAME}.tar.xz" XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" - # For the mingw abort() patch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" + if [[ ${XBB_RELEASE_VERSION} =~ 11[.].*[.].*-.* ]] && \ + [ "${XBB_HOST_PLATFORM}" == "darwin" ] + then + # For 11.5 use Iain's branch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross-darwin.git.patch" + else + # For the mingw abort() patch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + fi # The Apple Silicon host patches are already in for 12.x. # GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" From 19cfe5db46b6457226ab1643365f18fdd18c3cfc Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Jul 2024 22:29:54 +0300 Subject: [PATCH 64/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d5ef0c..afaadf4 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.1.35" + "@xpack-dev-tools/xbb-helper": "^2.1.36" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From 1db6d1d42964bf670ca88e42a2fe4851d5e39f4c Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Jul 2024 22:30:34 +0300 Subject: [PATCH 65/76] versioning.sh: all macOS use darwin branches --- scripts/versioning.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index d2ebad8..d5834df 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -168,14 +168,13 @@ function application_build_versioned_components() XBB_GCC_ARCHIVE_NAME="${XBB_GCC_SRC_FOLDER_NAME}.tar.xz" XBB_GCC_ARCHIVE_URL="https://ftp.gnu.org/gnu/gcc/gcc-${XBB_GCC_VERSION}/${XBB_GCC_ARCHIVE_NAME}" - if [[ ${XBB_RELEASE_VERSION} =~ 11[.].*[.].*-.* ]] && \ - [ "${XBB_HOST_PLATFORM}" == "darwin" ] + if [ "${XBB_HOST_PLATFORM}" == "darwin" ] then - # For 11.5 use Iain's branch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross-darwin.git.patch" + # For macOS use Iain's branch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-darwin.git.patch" else # For the mingw abort() patch. - XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross.git.patch" + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" fi # The Apple Silicon host patches are already in for 12.x. From 655fa7e7dc6aee1a4a4f48dab32f8b2c5e8731b9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Mon, 22 Jul 2024 22:30:56 +0300 Subject: [PATCH 66/76] versioning.sh: add support for 15.x & co --- scripts/versioning.sh | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/scripts/versioning.sh b/scripts/versioning.sh index d5834df..3172c61 100644 --- a/scripts/versioning.sh +++ b/scripts/versioning.sh @@ -134,10 +134,30 @@ function application_build_versioned_components() # --------------------------------------------------------------------------- # In reverse chronological order. - if [[ ${XBB_RELEASE_VERSION} =~ 11[.][5][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ - [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] + if [[ ${XBB_RELEASE_VERSION} =~ 12[.][5][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][4][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 14[.][3][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 15[.][012][.].*-.* ]] + then + + # Starting with GCC 15, no more cross patches. + if [ "${XBB_HOST_PLATFORM}" == "darwin" ] + then + # For macOS use Iain's branch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}-cross-darwin.git.patch" + else + # For the mingw abort() patch. + XBB_GCC_PATCH_FILE_NAME="gcc-${XBB_GCC_VERSION}.git.patch" + fi + + # TODO + echo "Unsupported ${XBB_APPLICATION_LOWER_CASE_NAME} version ${XBB_RELEASE_VERSION}" + exit 1 + + elif [[ ${XBB_RELEASE_VERSION} =~ 11[.][5][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 12[.][4][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 13[.][3][.].*-.* ]] || \ + [[ ${XBB_RELEASE_VERSION} =~ 14[.][012][.].*-.* ]] then # ------------------------------------------------------------------------- From 878bee2c1a8c67ef607190bf48d536bafeb0e3a0 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 00:54:09 +0300 Subject: [PATCH 67/76] VERSION 12.4.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index b0bb0cb..e877ec0 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -11.5.0-1 +12.4.0-1 From 5f326987ab782f73c283e95244bdabb20242c7f9 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 03:11:44 +0300 Subject: [PATCH 68/76] VERSION 13.3.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index e877ec0..0bb01c7 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -12.4.0-1 +13.3.0-1 From bda45b2dbdecba15a41ea45f2343503eeedd2cc4 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 05:16:43 +0300 Subject: [PATCH 69/76] VERSION 14.1.0-1 --- scripts/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VERSION b/scripts/VERSION index 0bb01c7..e58387a 100644 --- a/scripts/VERSION +++ b/scripts/VERSION @@ -1 +1 @@ -13.3.0-1 +14.1.0-1 From f82dd8882b50206a664f700bc7ad0f689fd81b26 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:24:44 +0300 Subject: [PATCH 70/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index afaadf4..5d1af4f 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "riscv-none-elf-strip": "./.content/bin/riscv-none-elf-strip" }, "devDependencies": { - "@xpack-dev-tools/xbb-helper": "^2.1.36" + "@xpack-dev-tools/xbb-helper": "^2.1.37" }, "properties": { "appName": "GNU RISC-V Embedded GCC", From 44db7225a774d2f718496e25d513e2179e523f98 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:28:55 +0300 Subject: [PATCH 71/76] prepare v14.1.0-1 --- CHANGELOG.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bb8d7b..2a46250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,36 @@ Entries in this file are in reverse chronological order. -## 2024-07-19 +## 2024-07-23 * v14.1.0-1 prepared +* f82dd88 package.json: bump deps +* bda45b2 VERSION 14.1.0-1 +* 5f32698 VERSION 13.3.0-1 +* 878bee2 VERSION 12.4.0-1 + +## 2024-07-22 + +* 655fa7e versioning.sh: add support for 15.x & co +* 1db6d1d versioning.sh: all macOS use darwin branches +* 19cfe5d package.json: bump deps +* 2e51c41 versioning.sh: use cross.git on all except macos for 11.5 + +## 2024-07-21 + +* 0987e97 VERSION 11.5.0-1 +* 0a1afe9 VERSION 12.4.0-1 +* a78b498 README update +* 591bd20 VERSION 13.3.0-1 + +## 2024-07-20 + +* c182e2a README update + +## 2024-07-19 + +* 2d879f9 application.sh: re-enable multilib +* f0e6d1f prepare v14.1.0-1 * cb2592d package.json: bump deps * 7751cc6 .npmignore update * 15e03bc scripts: update from template From 1cee8abf3ca9a5fde31e4f79684dba5d4e20a9b2 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:31:56 +0300 Subject: [PATCH 72/76] application.sh: temporarily disable multilib for first run --- scripts/application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/application.sh b/scripts/application.sh index c93bd1c..097e842 100644 --- a/scripts/application.sh +++ b/scripts/application.sh @@ -38,7 +38,7 @@ XBB_APPLICATION_HAS_FLEX_PACKAGE="y" # Normally should be commented out. Enable it only during tests, # to save some build time. -# XBB_APPLICATION_WITHOUT_MULTILIB="y" +XBB_APPLICATION_WITHOUT_MULTILIB="y" # ----------------------------------------------------------------------------- From a67b071c8d452f10875cdaa884a673b75a0a7dfd Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:36:32 +0300 Subject: [PATCH 73/76] package.json: update generate-workflows --- package.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 5d1af4f..3d52e01 100644 --- a/package.json +++ b/package.json @@ -134,18 +134,18 @@ "generate-workflows": [ "mkdir -p .github/workflows/", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/body-github-pre-releases-test.md .github/workflows/", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-darwin-x64-liquid.yml > .github/workflows/build-darwin-x64.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-darwin-arm64-liquid.yml > .github/workflows/build-darwin-arm64.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-x64-liquid.yml > .github/workflows/build-linux-x64.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-win32-x64-liquid.yml > .github/workflows/build-win32-x64.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-arm-liquid.yml > .github/workflows/build-linux-arm.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/build-linux-arm64-liquid.yml > .github/workflows/build-linux-arm64.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-prime-liquid.yml > .github/workflows/test-prime.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-docker-linux-intel-liquid.yml > .github/workflows/test-docker-linux-intel.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-docker-linux-arm-liquid.yml > .github/workflows/test-docker-linux-arm.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/publish-release-liquid.yml > .github/workflows/publish-release.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/test-xpm-liquid.yml > .github/workflows/test-xpm.yml", - "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/deep-clean-liquid.yml > .github/workflows/deep-clean.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-darwin-x64-liquid.yml --output .github/workflows/build-darwin-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-darwin-arm64-liquid.yml --output .github/workflows/build-darwin-arm64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-linux-x64-liquid.yml --output .github/workflows/build-linux-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-win32-x64-liquid.yml --output .github/workflows/build-win32-x64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-linux-arm-liquid.yml --output .github/workflows/build-linux-arm.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/build-linux-arm64-liquid.yml --output .github/workflows/build-linux-arm64.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/test-prime-liquid.yml --output .github/workflows/test-prime.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/test-docker-linux-intel-liquid.yml --output .github/workflows/test-docker-linux-intel.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/test-docker-linux-arm-liquid.yml --output .github/workflows/test-docker-linux-arm.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/publish-release-liquid.yml --output .github/workflows/publish-release.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/test-xpm-liquid.yml --output .github/workflows/test-xpm.yml", + "{{ properties.LIQUIDJS }} --template @xpacks/@xpack-dev-tools/xbb-helper/templates/workflows/deep-clean-liquid.yml --output .github/workflows/deep-clean.yml", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/dot.gitignore .gitignore", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/dot.npmignore .npmignore", "cp xpacks/@xpack-dev-tools/xbb-helper/templates/build.sh scripts/", From 5bd25e621d23ab4cd95081d290d7635a27569bc1 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:36:49 +0300 Subject: [PATCH 74/76] re-generate workflows --- .github/workflows/build-linux-arm.yml | 31 +++++++++++++++++---- .github/workflows/build-linux-arm64.yml | 36 ++++++++++++++++++++----- .github/workflows/build-linux-x64.yml | 29 ++++++++++++++++---- .github/workflows/build-win32-x64.yml | 29 +++++++++++++++++--- 4 files changed, 104 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-linux-arm.yml b/.github/workflows/build-linux-arm.yml index 746cb24..6681dc0 100644 --- a/.github/workflows/build-linux-arm.yml +++ b/.github/workflows/build-linux-arm.yml @@ -111,8 +111,29 @@ jobs: xpm install --config linux-arm --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-arm + linux-arm-upload: + name: 'linux-arm riscv-none-elf-gcc ${{ github.event.inputs.version }} upload' + timeout-minutes: 2880 # 2 days + runs-on: [self-hosted, linux, arm, xbbla32] + defaults: + run: + shell: bash + needs: [linux-arm-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + echo "node: $(node --version)" + echo "npm: $(npm --version)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + - name: Upload platform artefacts - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: deploy-linux-arm path: ${{ github.workspace }}/build/linux-arm/deploy/* @@ -140,12 +161,12 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S) linux-arm-test: name: 'linux-arm riscv-none-elf-gcc@${{ github.event.inputs.version }} test' runs-on: [self-hosted, linux, arm, xbbla32] - needs: [linux-arm-build] + needs: [linux-arm-upload] steps: - name: 'Show environment' @@ -164,7 +185,7 @@ jobs: # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 # v3 for 18.04 + uses: actions/checkout@v4 with: fetch-depth: 3 @@ -183,7 +204,7 @@ jobs: args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release - name: Upload platform tests report - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: tests-report-linux-arm path: ${{ github.workspace }}/build/linux-arm/artefacts/tests-report-*.md diff --git a/.github/workflows/build-linux-arm64.yml b/.github/workflows/build-linux-arm64.yml index 0780275..e984532 100644 --- a/.github/workflows/build-linux-arm64.yml +++ b/.github/workflows/build-linux-arm64.yml @@ -66,7 +66,7 @@ jobs: linux-arm64-build: name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 2880 # 2 days - runs-on: [self-hosted, linux, arm64, xbbla] + runs-on: [self-hosted, linux, arm64, xbbla, xbblax] container: image: ilegeul/ubuntu:arm64v8-18.04-xbb-v5.2.1 defaults: @@ -111,8 +111,30 @@ jobs: xpm install --config linux-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-arm64 + linux-arm64-upload: + name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload' + timeout-minutes: 2880 # 2 days + runs-on: [self-hosted, linux, arm64, xbbla, xbblax] + container: + defaults: + run: + shell: bash + needs: [linux-arm64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + echo "node: $(node --version)" + echo "npm: $(npm --version)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + - name: Upload platform artefacts - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: deploy-linux-arm64 path: ${{ github.workspace }}/build/linux-arm64/deploy/* @@ -140,12 +162,12 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S) linux-arm64-test: name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' - runs-on: [self-hosted, linux, arm64, xbbla] - needs: [linux-arm64-build] + runs-on: [self-hosted, linux, arm64, xbbla, xbblax] + needs: [linux-arm64-upload] steps: - name: 'Show environment' @@ -164,7 +186,7 @@ jobs: # https://github.com/actions/checkout - name: 'Checkout project' - uses: actions/checkout@v3 # v3 for 18.04 + uses: actions/checkout@v4 with: fetch-depth: 3 @@ -183,7 +205,7 @@ jobs: args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release - name: Upload platform tests report - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: tests-report-linux-arm64 path: ${{ github.workspace }}/build/linux-arm64/artefacts/tests-report-*.md diff --git a/.github/workflows/build-linux-x64.yml b/.github/workflows/build-linux-x64.yml index f5f90bb..9287473 100644 --- a/.github/workflows/build-linux-x64.yml +++ b/.github/workflows/build-linux-x64.yml @@ -66,7 +66,7 @@ jobs: linux-x64-build: name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 5760 # 4 days - runs-on: [self-hosted, linux, x64] + runs-on: [self-hosted, linux, x64, xbblix] container: image: ilegeul/ubuntu:amd64-18.04-xbb-v5.2.1 defaults: @@ -111,11 +111,30 @@ jobs: xpm install --config linux-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config linux-x64 + linux-x64-upload: + name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload' + timeout-minutes: 5760 # 4 days + runs-on: [self-hosted, linux, x64, xbblix] + defaults: + run: + shell: bash + needs: [linux-x64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + - name: Upload platform artefacts - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: deploy-linux-x64 - path: ${{ github.workspace }}/build/linux-x64/deploy/* + path: $/build/linux-x64/deploy/* overwrite: true - name: 'Publish pre-release' @@ -140,12 +159,12 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S) linux-x64-test: name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: ubuntu-22.04 - needs: [linux-x64-build] + needs: [linux-x64-upload] steps: - name: 'Show environment' diff --git a/.github/workflows/build-win32-x64.yml b/.github/workflows/build-win32-x64.yml index ccdbe51..42b0dca 100644 --- a/.github/workflows/build-win32-x64.yml +++ b/.github/workflows/build-win32-x64.yml @@ -66,7 +66,7 @@ jobs: win32-x64-build: name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build' timeout-minutes: 5760 # 4 days - runs-on: [self-hosted, linux, x64] + runs-on: [self-hosted, linux, x64, xbbliw] container: image: ilegeul/ubuntu:amd64-18.04-xbb-v5.2.1 defaults: @@ -111,8 +111,29 @@ jobs: xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} xpm run build --config win32-x64 + win32-x64-upload: + name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload' + timeout-minutes: 5760 # 4 days + runs-on: [self-hosted, linux, x64, xbbliw] + defaults: + run: + shell: bash + needs: [win32-x64-build] + + steps: + - name: 'Show environment' + run: | + uname -a + lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + echo "node: $(node --version)" + echo "npm: $(npm --version)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + - name: Upload platform artefacts - uses: actions/upload-artifact@v3 # v3 for 18.04 + uses: actions/upload-artifact@v4 with: name: deploy-win32-x64 path: ${{ github.workspace }}/build/win32-x64/deploy/* @@ -140,12 +161,12 @@ jobs: - name: 'Rename working area' # For just in case absolute paths remain unprocessed. - run: mv -v build build-$(date -u +%Y%m%d-%H%M%S) + run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S) win32-x64-test: name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test' runs-on: windows-2022 - needs: [win32-x64-build] + needs: [win32-x64-upload] defaults: run: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell From 47b208b09fcd6836d554cb2d76625fe166235ba7 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:48:04 +0300 Subject: [PATCH 75/76] package.json: bump deps --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3d52e01..3ba23d8 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "buildFolderRelativePathPosix": "{{ 'build' | path_posix_join: configuration.name | downcase }}", "commandBashBuild": "bash {{ properties.dbg }} scripts/build.sh --target {{ configuration.name }} --build-folder {{ properties.buildFolderRelativePathPosix }}", "xpm-version": "0.18.0", - "xpm-install-loglevel": "info", + "xpm-install-loglevel": "trace", "dbg": "" }, "actions": { From 1f31f3794db958b67d1b4a8482b17ae1d217148d Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 23 Jul 2024 07:49:48 +0300 Subject: [PATCH 76/76] package.json: loglevel info --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ba23d8..3d52e01 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "buildFolderRelativePathPosix": "{{ 'build' | path_posix_join: configuration.name | downcase }}", "commandBashBuild": "bash {{ properties.dbg }} scripts/build.sh --target {{ configuration.name }} --build-folder {{ properties.buildFolderRelativePathPosix }}", "xpm-version": "0.18.0", - "xpm-install-loglevel": "trace", + "xpm-install-loglevel": "info", "dbg": "" }, "actions": {