2022-12-20 19:36:18 -05:00
|
|
|
name: macos-matrix
|
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '*/*'
|
|
|
|
- '**'
|
|
|
|
- 'master'
|
|
|
|
- 'main'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '*/*'
|
|
|
|
- '**'
|
|
|
|
- 'master'
|
|
|
|
- 'main'
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
macos-build_and_test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, macos-11, macos-12]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-12-25 19:12:41 -05:00
|
|
|
- uses: styfle/cancel-workflow-action@0.11.0
|
2022-12-20 19:36:18 -05:00
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: printenv
|
|
|
|
run: |
|
|
|
|
brew install libtool autoconf automake
|
|
|
|
printenv
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: sudo make install
|
|
|
|
run: |
|
|
|
|
sudo make install
|
|
|
|
- name: man nostril
|
|
|
|
run: |
|
|
|
|
man nostril
|
|
|
|
- name: sudo -su runner nostril
|
|
|
|
run: |
|
|
|
|
#pipe handles non-zero return from nostril default help
|
|
|
|
sudo -su runner nostril | echo "${PIPESTATUS[0]}"
|