From 95f7af7982e081202b314a103998bc1f3ade79af Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 20 Dec 2022 19:36:18 -0500 Subject: [PATCH] .github/workflows/macos-matrix.yml: add macos matrix --- .github/workflows/macos-matrix.yml | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/macos-matrix.yml diff --git a/.github/workflows/macos-matrix.yml b/.github/workflows/macos-matrix.yml new file mode 100644 index 0000000..1dc3e3d --- /dev/null +++ b/.github/workflows/macos-matrix.yml @@ -0,0 +1,50 @@ +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: + - uses: styfle/cancel-workflow-action@0.9.1 + 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]}"