Skip to content

Commit f7a41a0

Browse files
authored
Merge pull request #5957 from kit-ty-kate/release-script-2.1.6
Release script fixes and improvements
2 parents b04e9e8 + 1cb2f33 commit f7a41a0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

release/Dockerfile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ USER opam
2525
WORKDIR /home/opam/
2626
CMD tar xz >&2 && \
2727
cd opam-full-${VERSION} >&2 && \
28-
echo "(${LINKING})" > src/client/linking.sexp && \
2928
{ { ./configure --with-mccs >&2 && make lib-ext >&2 ; } || \
3029
./configure --with-vendored-deps >&2 ; } && \
30+
echo "(${LINKING})" > src/client/linking.sexp && \
3131
make opam >&2 && \
3232
strip opam >&2 && \
3333
cat opam

release/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ host: $(OUTDIR)/opam-full-$(VERSION).tar.gz build/$(HOST).env
110110
MAKE=$(MAKE) \
111111
$(EXPORTS_$(HOST_OS)); \
112112
cd build/opam-full-$(VERSION) && \
113-
{ ./configure --with-vendored-deps || { ./configure && $(MAKE) lib-ext; }; } && \
113+
{ { ./configure --with-mccs >&2 && $(MAKE) lib-ext >&2 ; } || \
114+
./configure --with-vendored-deps >&2 ; } && \
114115
echo "$(call LINKING,$(HOST_OS))" >src/client/linking.sexp && \
115116
$(MAKE) opam; \
116117
)

release/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* /!\ Once the tag pushed, it can be updated [different commit] only in case of severe issue
1515
* create a release (or prerelease if intermediate release) draft on github based on your tag (https://github.com/ocaml/opam/releases/new)
1616
* fetch locally the tag
17+
* launch docker using the Docker GUI macOS app
1718
* generate opam artifacts, using `release/release.sh <tag>` from a macOS/arm64 machine, it requires to have Docker and QEMU installed (see below device requirements)
1819
* generate the signatures using `release/sign.sh <tag>`
1920
* add releases notes (content of `master_changes.md`) in the release draft
@@ -46,8 +47,7 @@
4647
---
4748

4849
## Device requirements
49-
* Mac M1
50-
* installed: git, gpg, qemu>=8.1.0, docker>=24.0.0
50+
* Mac M1 or above with Rosetta2
51+
* brew dependencies: git, gpg, qemu>=8.1.0, docker>=24.0.0, md5sha1sum (only when releasing on the 2.1 branch)
5152
* opam repo with the tag fetched
5253
* Have the secret key available
53-
* Launch docker using the Docker GUI macOS app

0 commit comments

Comments
 (0)