How to make new xPack GCC releases
This page is designed for maintainers of the xPack GCC project and provides documentation on how to create new releases.
Prerequisites
The build scripts run on GNU/Linux and macOS. The Windows binaries are compiled on x64 GNU/Linux, using mingw-w64.
For details on installing the prerequisites, please read the Build Prerequisites page.
Get project sources
The project is hosted on GitHub:
To clone the stable branch (xpack
), run the following commands in a
terminal (on Windows use the Git Bash console):
rm -rf ~/Work/xpack-dev-tools/gcc-xpack.git && \
git clone https://github.com/xpack-dev-tools/gcc-xpack.git \
~/Work/xpack-dev-tools/gcc-xpack.git
For development purposes, clone the xpack-development
branch:
rm -rf ~/Work/xpack-dev-tools/gcc-xpack.git && \
mkdir -p ~/Work/xpack-dev-tools && \
git clone \
--branch xpack-development \
https://github.com/xpack-dev-tools/gcc-xpack.git \
~/Work/xpack-dev-tools/gcc-xpack.git
Or, if the repo was already cloned:
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull
Get the writable helper sources
The project has a dependency to a common helper, that is
normally installed as a read-only dependency; for development
purposes, to be able to make changes to the scripts located inside the helper,
clone the xpack-development
branch and link it to
the user global xPacks store:
rm -rf ~/Work/xpack-dev-tools/xbb-helper-xpack.git && \
mkdir -p ~/Work/xpack-dev-tools && \
git clone \
--branch xpack-development \
https://github.com/xpack-dev-tools/xbb-helper-xpack.git \
~/Work/xpack-dev-tools/xbb-helper-xpack.git && \
xpm link -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git
Or, if the repo was already cloned:
git -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git pull
xpm link -C ~/Work/xpack-dev-tools/xbb-helper-xpack.git
Other repositories in use are:
- https://github.com/iains, the gcc-*-branch forks, to create the macOS patches
See the helper README-GCC-MACOS file for details on how to prepare the patches.
Release schedule
This distribution generally follows the official GCC release timeline.
For each major version there are 2 releases, like 14.1 in the first part of the year (tentatively April-May) and 14.2 in the second part (tentatively in August-September).
Previous versions are maintained for 3 more years, and, around midyear, GNU releases updates for the previous 3 versions, (like 13.3, 12.4, 11.5).
Prepare the new releases
Before starting the build, perform some checks and tweaks.
Download the build scripts
The build scripts are available in the build-assets/scripts
folder of the
xpack-dev-tools/gcc-xpack
Git repo.
To download them on a new machine, clone the xpack-development
branch,
as seen above.
Check Git
In the xpack-dev-tools/gcc-xpack
Git repo:
- switch to the
xpack-development
branch - pull new changes
- if necessary, merge the
xpack
branch - if necessary, merge the
website
branch
This is really important, otherwise the next steps will build again the previous release!
The xpack
branch should be unchanged since the previous release
and will be updated when the new release is out.
Update helper & other dependencies
Check the latest versions at https://github.com/xpack-dev-tools/ and
update the dependencies in build-assets/package.json
.
Check the latest upstream release
The current release must be announced in the GCC Timeline page. Compare the latest GCC release with the current xPack release.
If necessary, update the triplet, otherwise increase the fourth number, as below.
The actual version is in the gcc.git/gcc/BASE-VER
file.
Increase the version and update it in the top package.json
- determine the version (like
14.2.0-2.1
) - update the version in top
package.json
- use the new version, suffixed by
.pre
, like14.2.0-2.1.pre
.
Update the websiteConfig
in website/package.json
(if necessary)
Update the custom fields.
Update the website commons
Run the website-generate-commons
actions from build-assets
.
Start the local web server
Execute the npm script clean
then start
in the website sub-project,
or run the following in a terminal:
(cd ~/Work/xpack-dev-tools/xbb-helper-xpack.git/website; npm run clean; npm run start)
Navigate to the Maintainer Info page, the Increase the version and update VERSION section.
Increase the version and update VERSION
Determine the version (like 14.2.0-2
)
and update the build-assets/scripts/VERSION
file; the format
is 14.2.0-2
.
The fourth number is the xPack release number of this version. A fifth number will be added to the version in package.json
when the package is published to the npm
server.
Update the websiteConfig
in website/package.json
(if necessary)
- update the release specific properties (if any)
- restart the local web server
Update the version specific code
- open the
build-assets/scripts/versioning.sh
file - add a new
if
with the new version before the existing code
Prepare a patch for the macOS build, and store it in the helper
(see the patches/README-GCC-MACOS.md
file for details).
Fix possible open issues
Check GitHub issues and pull requests:
- https://github.com/xpack-dev-tools/gcc-xpack/issues
- https://github.com/xpack-dev-tools/gcc-xpack/pulls
and fix them; assign them to a milestone (like 14.2.0-2
).
Update CHANGELOG.md
To turn the dates into headings, change from:
([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]) [*]
to:
## $1
*
To remove the rest of the dates, change from:
^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [*]
to:
*
- open the
CHANGELOG.md
file - check if all previous fixed issues are in
- check the latest commits
xpm run git-log
; if necessary, copy/paste lines, group by dates and edit them using the below regular expressions - add a new entry like * v14.2.0-2 prepared
- commit with the message prepare v14.2.0-2
Push the changes to the xpack-development
branch
Be sure that the latest commit that updates VERSION
is pushed
to the xpack-development
branch!
This is really important, otherwise the next steps will build again the previous release!
Run the development builds
The builds currently run on 5 dedicated machines (x64 GNU/Linux, x64 macOS, arm64 macOS, arm64 GNU/Linux, arm GNU/Linux).
Before the real build, run test/development builds on all platforms.
Visual Studio Code extension
All actions are defined as xpm/xPack actions and can be conveniently triggered via the VS Code graphical interface, using the xPack C/C++ Managed Build Tools extension.
Patches
For macOS builds, this project uses Iain's branches from:
- https://github.com/iains/gcc-11-branch
- https://github.com/iains/gcc-12-branch
- https://github.com/iains/gcc-13-branch
- https://github.com/iains/gcc-14-branch
See the helper README-GCC-MACOS file for details on how to prepare the patches.
Restart the docker daemons
If, for any reasons, the docker builds need to be canceled, it is very likely that some processes will continue to run in the background.
To completely terminate them, and ensure that docker runs from a clean slate, restart the docker daemons on all GNU/Linux machines:
sudo systemctl restart docker
Check if both projects are pushed
Check if both the current project and the helper are
on the xpack-development
branch and the latest
commits are pushed to GitHub.
Build the x64 macOS binaries
For x64 macOS, first run the build on the development machine
(wksi
, a recent macOS):
export XBB_ENVIRONMENT_SKIP_CHECKS="y"
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
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/gcc-xpack.git/build-assets
xpm run deep-clean --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm install --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run build-development --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
For a debug build:
xpm run build-development-debug --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
The build takes about 91 minutes (1h31m) to complete.
When functional, push the xpack-development
branch to GitHub.
Run the native build on the production machine
(xbbmi
, an older macOS);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbmi
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm install --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run build-development --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 113 minutes (1h53m) later, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/darwin-x64/deploy
folder:
-
xpack-gcc-14.2.0-2-darwin-x64.tar.gz
-
xpack-gcc-14.2.0-2-darwin-x64.tar.gz.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm install --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run build --config darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Build the arm64 macOS binaries
Run the native build on the production machine
(xbbma
, an older macOS);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbma
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm install --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run build-development --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 50 minutes later, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/darwin-arm64/deploy
folder:
-
xpack-gcc-14.2.0-2-darwin-arm64.tar.gz
-
xpack-gcc-14.2.0-2-darwin-arm64.tar.gz.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm install --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run build --config darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Build the x64 GNU/Linux binaries
Run the docker build on the production machine (xbbli
);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbli
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-link-deps --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 62 minutes (1h02m) later, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/linux-x64/deploy
folder:
-
xpack-gcc-14.2.0-2-linux-x64.tar.gz
-
xpack-gcc-14.2.0-2-linux-x64.tar.gz.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Build the x64 Windows binaries
Run the docker build on the production machine (xbbli
);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbli
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-link-deps --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 85 minutes (1h25m) later, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/win32-x64/deploy
folder:
-
xpack-gcc-14.2.0-2-win32-x64.zip
-
xpack-gcc-14.2.0-2-win32-x64.zip.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Build the arm64 GNU/Linux binaries
Run the docker build on the production machine (xbbla
);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbla
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-link-deps --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 380 minutes (6h20m) later, or 101 minutes (1h41m) on ampere, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/linux-arm64/deploy
folder:
-
xpack-gcc-14.2.0-2-linux-arm64.tar.gz
-
xpack-gcc-14.2.0-2-linux-arm64.tar.gz.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Build the arm GNU/Linux (32-bit) binaries
Run the docker build on the production machine (xbbla32
);
start a VS Code remote session, or connect with a terminal:
caffeinate ssh xbbla32
To check the available space:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
To update the build scripts and build the development binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
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/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-link-deps --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
About 330 minutes (5h30m) later, the output of the build script is a compressed
archive and its SHA signature, created in
the build-assets/build/linux-arm/deploy
folder:
-
xpack-gcc-14.2.0-2-linux-arm.tar.gz
-
xpack-gcc-14.2.0-2-linux-arm.tar.gz.sha
To update the build scripts and build the release binaries:
rm -f ~/Work/xpack-dev-tools/gcc-xpack.git/package-lock.json && \
git -C ~/Work/xpack-dev-tools/gcc-xpack.git pull && \
xpm run install -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
\
xpm run deep-clean --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-prepare --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets && \
xpm run docker-build-development --config linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Update the durations of the development builds
In website/docs/maintainer/_development-durations.mdx
, update
the durations of the builds.
Commit with the message website: update development durations.
Update the trees in the Install Guide page
Copy the trees displayed at the end of the test builds and paste to Folder hierarchy section in the web file:
website/docs/install/_folders-hierarchies-linux.mdx
website/docs/install/_folders-hierarchies-macos.mdx
website/docs/install/_folders-hierarchies-windows.mdx
If present, replace the actual version (like 14.2.0) with the following expression:
${customField('upstreamVersion')}
macOS does not have a tree
command; either compile it from
sources, or install it
via HomeBrew, and make a link to /usr/local/bin
.
Commit with the message website: update folder hierarchies.
Update the list of links in top package.json
Copy/paste the full list of links displayed at the end of the build, in sequence, for each platform (Windows, macOS, GNU/Linux), and check the differences compared to the repository.
Commit if necessary with the message package.json: update executables links.
How to build a debug version
In some cases it is necessary to run a debug session with the binaries.
For these cases, the build script accepts the --debug
options.
There are also xpm actions that use this option (build-development-debug
and docker-build-development-debug
).
Files cache
The XBB build scripts use a local cache such that files are downloaded only during the first run, later runs being able to use the cached files.
However, occasionally some servers may not be available, and the builds may fail.
The workaround is to manually download the files from alternate
locations (like
https://github.com/xpack-dev-tools/files-cache/tree/master/libs),
place them in the XBB cache (Work/cache
) and restart the build.
Run the production builds
The automation is provided by GitHub Actions and three self-hosted runners.
Start the self-hosted runners
- on the development machine (
wksi
) open ssh sessions to the build machines (xbbli
,xbbmi
,xbbma
,xbbla
,xbbla32
):
caffeinate ssh xbbli
caffeinate ssh xbbmi
caffeinate ssh xbbma
caffeinate ssh xbbla
caffeinate ssh xbbla32
Create a screen
session, to provide a persistent standard output for
the runners:
screen -S ga
To quit it, use # Ctrl-a Ctrl-d
.
For xbbli
& xbbla
, which have more memory, start two runners:
~/actions-runners/xpack-dev-tools/1/run.sh &
~/actions-runners/xpack-dev-tools/2/run.sh &
On all other machines start a single runner:
~/actions-runners/xpack-dev-tools/run.sh &
To check the status of the runners locally:
ps -a | grep 'Runner.Listener'
To kill them:
killall Runner.Listener
Check the status of the runners
The status of all self-hosted runners is available at the GitHub Runners page.
Publish the helper
Publish a new release of the helper on npmjs.
Update the dependency to the new helper
In build-assets/package.json
, update the reference
to "@xpack-dev-tools/xbb-helper":
(possibly in all xPack projects).
Commit the changes to build-assets/package.json
Commit with the message build-assets/package.json: bump deps.
Check for disk space
Check if the build machines have enough free space and eventually do some cleanups:
xpm run check-space -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
This is equivalent to running a df
command.
- macOS
- GNU/Linux
df -gH /
df -BG -H /
To free the space used by all previous builds of all xpack-dev-tools
packages:
xpm run clear-all-projects-builds -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
This is equivalent to running a wide rm
to remove the build
folders:
rm -rf ~/Work/xpack-dev-tools/*/build-assets/build
Generate the GitHub workflows
Run the generate-workflows xpm/xPack action to update the GitHub workflow files.
xpm run generate-workflows -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
Commit and push
- commit with the message re-generate workflows
- push the
xpack-development
branch to GitHub
Manually trigger the build GitHub Actions
To trigger the GitHub Actions builds, use the xpm actions:
- 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
xpm run trigger-workflow-build-darwin-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-build-darwin-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-build-linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-build-win32-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-build-linux-arm64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-build-linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
The scripts behind these actions require the GITHUB_API_DISPATCH_TOKEN
variable to be present
in the environment, and the organization PUBLISH_TOKEN
to be visible in the
Settings → Action →
Secrets
page.
These commands use the xpack-development
branch of this repo.
Durations & resulting binaries
The builds take almost 7 hours to complete:
darwin-x64
: 2h7m (nuc)darwin-arm64
: 54m (m1)linux-x64
: 1h8m (amd)win32-x64
: 1h47m (amd)linux-arm64
: 6h37m (rpi4)linux-arm
: 5h39m (rpi4)
The workflow results and logs are available from the GitHub Actions page.
Update the values in website/docs/maintainer/_github-actions-durations.mdx
with those shown by GitHub Actions.
Commit with the message website: update actions durations.
The resulting binaries are available for testing from pre-releases/test.
Run the tests
Automated tests
The automation is provided by GitHub Actions.
To trigger the GitHub Actions tests, run the xpm actions:
- trigger-workflow-test-prime
- trigger-workflow-test-docker-linux-x64
- trigger-workflow-test-docker-linux-arm
xpm run trigger-workflow-test-prime -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-test-docker-linux-x64 -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
xpm run trigger-workflow-test-docker-linux-arm -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
The scripts behind these accessible require the GITHUB_API_DISPATCH_TOKEN
variable to be present
in the environment.
These actions use the xpack-development
branch of this repo and the
pre-releases/test
binaries.
Some of the docker-linux-arm
tests have an issue on Debian and the
Clean working area step fails.
The tests results are available from the GitHub Actions page.
After running the prime tests, download the test results and compare with previous runs.
More macOS tests
Since GitHub Actions provides a limited range of versions for the macOS runner, the multi-version macOS tests run on Travis.
To trigger the Travis test, run the trigger-travis-macos xpm/xPack action:
xpm run trigger-travis-macos -C ~/Work/xpack-dev-tools/gcc-xpack.git/build-assets
This script requires the TRAVIS_COM_TOKEN
variable to be present
in the environment.
The test results are available from Travis CI.