GHA: Get it building
This commit is contained in:
@@ -51,6 +51,12 @@ on:
|
||||
|
||||
jobs:
|
||||
osx:
|
||||
# Run if no [only X] tag, or if [only osx] is present (check both push commits and PR titles)
|
||||
if: >-
|
||||
(!contains(github.event.head_commit.message, '[only ') &&
|
||||
!contains(github.event.pull_request.title, '[only ')) ||
|
||||
contains(github.event.head_commit.message, '[only osx]') ||
|
||||
contains(github.event.pull_request.title, '[only osx]')
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -66,8 +72,10 @@ jobs:
|
||||
echo "bison, flex, ncurses, texinfo, and unzip are in the base OS."
|
||||
echo "berkeley-db, perl, python3, curl, and jq are installed in the"
|
||||
echo "base image already."
|
||||
brew install autoconf automake libtool cpanm texinfo texi2html
|
||||
brew install autoconf automake bison libtool cpanm texinfo texi2html bash openssl@3
|
||||
sudo cpanm install JSON
|
||||
# Use Homebrew bash for tests (much faster than /bin/bash on macOS)
|
||||
echo "$(brew --prefix)/bin" >> $GITHUB_PATH
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
@@ -79,7 +87,7 @@ jobs:
|
||||
/bin/sh ./autogen.sh
|
||||
mkdir build
|
||||
cd build
|
||||
../configure --srcdir=`dirname "$PWD"` --disable-heimdal-documentation --disable-afs-support --enable-maintainer-mode --enable-developer $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-O0 -g -ggdb3 -Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations"
|
||||
../configure --srcdir=`dirname "$PWD"` --disable-heimdal-documentation --enable-maintainer-mode --enable-developer $CONFIGURE_OPTS --prefix=$HOME/inst --with-openssl=/opt/homebrew/opt/openssl@3/ CFLAGS="-O0 -g -ggdb3 -Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations"
|
||||
ulimit -c unlimited
|
||||
PATH=/usr/local/opt/texinfo/bin:$PATH
|
||||
export PATH
|
||||
@@ -89,12 +97,15 @@ jobs:
|
||||
# with:
|
||||
# limit-access-to-actor: true
|
||||
- name: Test
|
||||
shell: bash
|
||||
env:
|
||||
CC: ${{ matrix.compiler }}
|
||||
MAKEVARS: ${{ matrix.makevars }}
|
||||
CONFIGURE_OPTS: ${{ matrix.configureopts }}
|
||||
run: |
|
||||
set -vx
|
||||
# Verify we're using Homebrew bash (faster than system bash)
|
||||
echo "Using bash: $(which bash) version $BASH_VERSION"
|
||||
sudo lsof -nP -i:49188 || true
|
||||
cd build
|
||||
make check
|
||||
|
||||
Reference in New Issue
Block a user