[Git][NTPsec/ntpsec][master] Use variable in macOS CI jobs for Homebrew base prefix

Matt Selsky (@selsky) gitlab at mg.gitlab.com
Fri May 19 14:48:18 UTC 2023



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
205ba274 by Matt Selsky at 2023-05-19T10:46:21-04:00
Use variable in macOS CI jobs for Homebrew base prefix

- On Intel systems, homebrew uses /usr/local
- On Apple Silicon, homebrew uses /opt/homebrew

- - - - -


2 changed files:

- .gitlab-ci.yml
- .gitlab-opttest-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -373,7 +373,7 @@ macos-basic:
   <<: *job_definition
   image: macos-12-xcode-14
   script:
-    - PKG_CONFIG_PATH=/opt/homebrew/opt/openssl/lib/pkgconfig python ./waf configure --disable-doc --disable-manpage build --pyshebang "/usr/bin/env python3"
+    - PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/opt/openssl/lib/pkgconfig python ./waf configure --disable-doc --disable-manpage build --pyshebang "/usr/bin/env python3"
     - DESTDIR=build/prison python ./waf install
     - DESTDIR=./prison python ./waf install
     - DESTDIR=../prison python ./waf install
@@ -389,7 +389,7 @@ macos-refclocks:
   <<: *job_definition
   image: macos-12-xcode-14
   script:
-    - PKG_CONFIG_PATH=/opt/homebrew/opt/openssl/lib/pkgconfig python ./waf configure --disable-doc --disable-manpage --refclock=all build || cat build/config.log
+    - PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/opt/openssl/lib/pkgconfig python ./waf configure --disable-doc --disable-manpage --refclock=all build || cat build/config.log
   tags:
     - saas-macos-medium-m1
   rules:


=====================================
.gitlab-opttest-ci.yml
=====================================
@@ -76,7 +76,7 @@ macos-options-tester:
   needs: []
   image: macos-12-xcode-14
   script:
-    - PKG_CONFIG_PATH=/opt/homebrew/opt/openssl/lib/pkgconfig PYTHON=python3 tests/option-tester.sh
+    - PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/opt/openssl/lib/pkgconfig PYTHON=python3 tests/option-tester.sh
   tags:
     - saas-macos-medium-m1
   rules:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/205ba274ceada869f99a69c61e23460ac8a5a92e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/205ba274ceada869f99a69c61e23460ac8a5a92e
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20230519/075669f7/attachment-0001.htm>


More information about the vc mailing list