From 9c19f5707bc8b1270a58ea1983e9f84d9e6ab6d0 Mon Sep 17 00:00:00 2001 From: janko-jj <165717176+janko-jj@users.noreply.github.com> Date: Wed, 8 Jan 2025 20:53:58 +0100 Subject: [PATCH] Create macos-ci.yml --- .github/workflows/macos-ci.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/macos-ci.yml diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml new file mode 100644 index 0000000..5ef7b5b --- /dev/null +++ b/.github/workflows/macos-ci.yml @@ -0,0 +1,41 @@ +name: CI for macOS with Autotools + +on: [push, pull_request] + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout stable branch + uses: actions/checkout@v2 + with: + ref: stable + + - name: Install Homebrew + run: | + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile + eval "$(/opt/homebrew/bin/brew shellenv)" + + - name: Install Autotools + run: | + brew install autoconf automake + + - name: Run aclocal + run: aclocal -I . + + - name: Run automake + run: automake --add-missing --copy + + - name: Run autoconf + run: autoconf + + - name: Configure + run: ./configure + + - name: Build + run: make + + - name: Run tests + run: make check