commit:     d6f203d4f250a4d2f0eabf4370971ad070ea92a9
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  6 15:15:06 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Feb  6 15:15:06 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d6f203d4

.github: another attempt at actions

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 .github/workflows/build-test-ci.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build-test-ci.yml 
b/.github/workflows/build-test-ci.yml
index 7f3a262..fd445bd 100644
--- a/.github/workflows/build-test-ci.yml
+++ b/.github/workflows/build-test-ci.yml
@@ -57,10 +57,21 @@ jobs:
     runs-on: ${{ matrix.os }}
     env:
       CC: ${{ matrix.cc }}
-      PATH: "$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
     steps:
       - name: install deps
-        run: brew install gpgme gnupg gnu-sed coreutils bash openssl
+        run: brew install gpgme gnupg gnu-sed coreutils bash openssl b2sum
+      - name: add homebrew utils to PATH
+        run: |
+          echo "$(brew --prefix)/opt/coreutils/libexec/gnubin" >> $GITHUB_PATH
+          echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
+          echo "$(brew --prefix)/opt/openssl@3/bin" >> $GITHUB_PATH
+      - name: add homebrew utils to ENV
+        run: |
+          echo 'LDFLAGS="-L'"$(brew --prefix)/opt/openssl@3/lib ${LDFLAGS}"'"' 
>> $GITHUB_ENV
+          echo 'CPPFLAGS="-I'"$(brew --prefix)/opt/openssl@3/include 
${CPPFLAGS}"'"' >> $GITHUB_ENV
+          echo 'PKG_CONFIG_PATH="'"$(brew 
--prefix)/opt/openssl@3/lib/pkgconfig:${PKG_CONFIG_PATH}"'"' >> $GITHUB_ENV
+          echo 'LDFLAGS="-L'"$(brew --prefix)/opt/b2sum/lib ${LDFLAGS}"'"' >> 
$GITHUB_ENV
+          echo 'CPPFLAGS="-I'"$(brew --prefix)/opt/b2sum/include 
${CPPFLAGS}"'"' >> $GITHUB_ENV
       - uses: actions/checkout@v2
       - name: configure
         run: ./configure --disable-maintainer-mode --disable-openmp

Reply via email to