Skip to content

Commit

Permalink
Do we really need this?
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lemenkov <[email protected]>
  • Loading branch information
lemenkov committed Feb 21, 2024
1 parent 6a6546e commit 419e963
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/macosx_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [master]
pull_request:
branches:
- '*'

env:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build_all:
build_with_graphicsmagick:
runs-on: macOS-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -23,9 +26,29 @@ jobs:
- name: build and run tests packages with all featured readers
run: |
brew update
# Required for intltool and you cannot just brew install perl-xml-parser (formulae broken?)
perl -MCPAN -e "install XML::Parser"
perl -e "require XML::Parser"
for pkg in graphicsmagick pstoedit libpng exiv2 libtiff libjpeg libxml2 bzip2 freetype gettext intltool glib libtool autoconf automake pkg-config; do brew install $pkg || brew upgrade $pkg; done
brew install graphicsmagick pstoedit libpng gettext intltool glib libtool autoconf automake pkg-config
./autogen.sh
./configure
make
make check
shell: bash

build_with_imagemagick:
runs-on: macOS-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a single command using the runners shell
- name: build and run tests packages with all featured readers
run: |
brew update
# Required for intltool and you cannot just brew install perl-xml-parser (formulae broken?)
perl -MCPAN -e "install XML::Parser"
perl -e "require XML::Parser"
brew install imagemagick pstoedit libpng gettext intltool glib libtool autoconf automake pkg-config
./autogen.sh
./configure
make
Expand Down

0 comments on commit 419e963

Please sign in to comment.