mirror of
https://github.com/jb55/nostril.git
synced 2024-11-24 08:59:08 -05:00
workflow: add ubuntu matrix [ubuntu-22.04, ubuntu-latest]
add better test sequence
This commit is contained in:
parent
1da8107f9e
commit
c6e2643b2f
52
.github/workflows/c-cpp.yml
vendored
52
.github/workflows/c-cpp.yml
vendored
|
@ -1,17 +1,49 @@
|
||||||
name: C/C++ CI
|
name: nostril-ubuntu-matrix
|
||||||
|
|
||||||
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "master", "**" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
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:
|
jobs:
|
||||||
build:
|
ubuntu-build_and_test:
|
||||||
|
strategy:
|
||||||
runs-on: ubuntu-latest
|
matrix:
|
||||||
|
os: [ubuntu-20.04, ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: styfle/cancel-workflow-action@0.9.1
|
||||||
|
with:
|
||||||
|
access_token: ${{ github.token }}
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: printenv
|
||||||
|
run: |
|
||||||
|
printenv
|
||||||
- name: make
|
- name: make
|
||||||
run: 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]}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user