[Openvpn-devel,XS] Change in openvpn[master]: GitHub: preventing errors on GitHub Mac runner images

Message ID 9f39214e2d65c2f1a2b15374587f576664c1c939-HTML@gerrit.openvpn.net
State Rejected
Headers show
Series [Openvpn-devel,XS] Change in openvpn[master]: GitHub: preventing errors on GitHub Mac runner images | expand

Commit Message

plaisthos (Code Review) Aug. 20, 2024, 12:25 p.m. UTC
Attention is currently required from: flichtenheld, plaisthos.

Hello plaisthos, flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/732?usp=email

to review the following change.


Change subject: GitHub: preventing errors on GitHub Mac runner images
......................................................................

GitHub: preventing errors on GitHub Mac runner images

Change-Id: I2f018ffc3e067b7967289a87e06f730de0d7e8a8
Signed-off-by: Marco Baffo <marco@mandelbit.com>
---
M .github/workflows/build.yaml
1 file changed, 5 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/732/1

Patch

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 6e361d5..616b322 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -249,7 +249,11 @@ 
       UBSAN_OPTIONS: print_stacktrace=1
     steps:
       - name: Install dependencies
-        run: brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf libressl
+        run: |
+          # Unlink and re-link to prevent errors when github mac runner images
+          # https://github.com/actions/setup-python/issues/577
+          brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
+          brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf libressl
       - name: Checkout OpenVPN
         uses: actions/checkout@v4
       - name: autoconf