Fix Build workflow by installing automake and pkg-config on the host machine. (#2)

Trigger Build workflow on any branch BUT release/* and only on pull requests targeting develop
This commit is contained in:
Steven Sherry 2020-07-07 21:42:36 -05:00 committed by GitHub
parent d8b5fab45f
commit eb3c7e2e87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -2,15 +2,23 @@ name: Build
on:
push:
branches-ignore:
# We ignore on push to release because the Deliver workflow builds and
# uploads, while this just builds.
- 'release/**'
pull_request:
branches:
- main
- develop
# Only trigger on pull request to develop, since this is the primary branch of
# integration for both internal and external contributions.
- 'develop'
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Install automake and pkg-config
run: brew install automake pkg-config
- name: Switch to Xcode 12
run: sudo xcode-select --switch /Applications/Xcode_12_beta.app/Contents/Developer
- name: Build libtesseract