nostril/.github/workflows/ubuntu-matrix.yml

60 lines
1.4 KiB
YAML
Raw Normal View History

name: ubuntu-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:
ubuntu-build_and_test:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/cancel-workflow-action@0.11.0
2023-07-23 12:44:52 -04:00
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
2023-07-23 12:44:52 -04:00
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'recursive'
set-safe-directory: 'true'
- name: printenv && sudo apt update && sudo apt install scdoc -y
run: |
printenv && sudo apt update && sudo apt install scdoc -y
- name: rm -rf deps
run: |
2023-07-23 12:44:52 -04:00
rm -rf deps
- name: make
run: |
2023-07-23 12:44:52 -04:00
mkdir -p /usr/local/share/man/man1/nostril.1
make
- name: sudo make install
run: |
sudo make install
- name: man nostril
run: |
man nostril
2023-07-23 12:44:52 -04:00
- name: sudo ./nostril
run: |
#pipe handles non-zero return from nostril default help
2023-07-23 12:44:52 -04:00
file nostril
sudo ./nostril >/dev/null | echo "${PIPESTATUS[0]}"