Skip to content

Commit 0d7504e

Browse files
committed
Add build and release instructions
1 parent a2c8710 commit 0d7504e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,24 @@ The Binutils sources are built in this repository without any changes.
1515
After the build is done, we create a tarball with the binaries for
1616
Linux, macOS and Windows. The tarball is then used by Xamarin.Android
1717
to package the utilities for Xamarin.Android distribution.
18+
19+
# How to build and publish new version of GNU Binutils
20+
21+
1. Edit `.github/workflows/ci.yml`
22+
2. Set the `BINUTILS_VERSION` variable to the new version number of
23+
the upstream package.
24+
3. Commit and push the changes
25+
4. After the build finishes, visit the Actions tab, find the run
26+
corresponding to commit from `3.` above, download the
27+
`Xamarin.Android` artifact
28+
5. On your local machine, execute the release preparation script:
29+
```shell
30+
./prepare-release.sh PATH_TO_ARTIFACT_FROM_4 TAG_NAME
31+
```
32+
`TAG_NAME` should be created by concatenating the Binutils version
33+
with the `-XA.NUM` string, where `NUM` is an integer increasing
34+
monotonously each time a new release of the same Binutils version
35+
is made.
36+
6. The script will produce a `7-zip` package on your local disk and
37+
display instructions how to proceed with the release.
38+

prepare-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function prepare()
6060
cat <<EOF
6161
Next steps:
6262
63-
* Go to https://github.com/grendello/xamarin-android-binutils/releases
63+
* Go to https://github.com/xamarin/xamarin-android-binutils/releases
6464
* Create new release using the ${TAG_NAME} tag
6565
* Upload ${dest_archive} to that release
6666
EOF

0 commit comments

Comments
 (0)