]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.github/workflows: use macos-latest runner
authorDaiki Ueno <dueno@redhat.com>
Mon, 29 Jul 2024 22:53:18 +0000 (07:53 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 30 Jul 2024 07:09:58 +0000 (16:09 +0900)
This also does:
- update checkout action to v4
- manually supply CFLAGS and LDFLAGS of GMP
- point to the homebrew version of bison executable
- supply CFLAGS and LDFLAGS of libunistring
- install coreutils for "timeout"

Signed-off-by: Daiki Ueno <dueno@redhat.com>
.github/workflows/macos.yml

index b200769bda2f5dd44327a29d86126edbb8b92dec..aac8b12f638edee3aebe3b12c10776d0bfa89672 100644 (file)
@@ -4,35 +4,35 @@ on:
 
 jobs:
   build:
-    runs-on: macos-11.0
+    runs-on: macos-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
         with:
           submodules: false
       - name: install dependencies
         run: |
           brew update
-          for pkg in openssl autoconf automake libtool nettle p11-kit libtasn1 gettext bison gtk-doc; do
+          for pkg in openssl autoconf automake coreutils libtool gmp nettle p11-kit libtasn1 libunistring gettext bison gtk-doc; do
             brew install $pkg || true
           done
-          for pkg in nettle wget p11-kit libtasn1; do
+          for pkg in nettle wget p11-kit libtasn1 libunistring; do
             brew upgrade $pkg || true
           done
       - name: update path
         run: |
           echo /usr/local/opt/gettext/bin >>${GITHUB_PATH}
-          echo /usr/local/opt/bison/bin >>${GITHUB_PATH}
+          echo /opt/homebrew/opt/bison/bin >>${GITHUB_PATH}
       - name: bootstrap
         run: ./bootstrap
       - name: configure
         run: |
-          CC=clang ./configure --disable-full-test-suite --disable-valgrind-tests --disable-doc --disable-dependency-tracking
+          CFLAGS="-I$(brew --prefix libunistring)/include" LDFLAGS="-L$(brew --prefix libunistring)/lib" GMP_CFLAGS=$(pkg-config --cflags gmp) GMP_LIBS=$(pkg-config --libs gmp) CC=clang ./configure --disable-full-test-suite --disable-valgrind-tests --disable-doc --disable-dependency-tracking
       - name: make
         run: |
           make -j$(sysctl -n hw.ncpu) || make -j$(sysctl -n hw.ncpu) V=1
       - name: make check
         run: |
-          make -j$(sysctl -n hw.ncpu) check gl_public_submodule_commit=
+          make -j$(sysctl -n hw.ncpu) check gl_public_submodule_commit= TIMEOUT=gtimeout
       - name: show debug info
         if: failure()
         run: |