multipath-tools 0.9.9 #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check-abi | |
on: | |
push: | |
branches: | |
- queue | |
- abi | |
paths: | |
- '.github/workflows/abi.yaml' | |
- '**.h' | |
- '**.c' | |
pull_request: | |
branches: | |
- master | |
- queue | |
workflow_dispatch: | |
env: | |
ABI_BRANCH: ${{ secrets.ABI_BRANCH }} | |
jobs: | |
save-and-test-ABI: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: set ABI branch | |
if: ${{ env.ABI_BRANCH == '' }} | |
run: echo "ABI_BRANCH=master" >> $GITHUB_ENV | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: get reference ABI | |
id: reference | |
continue-on-error: true | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: abi.yaml | |
branch: ${{ env.ABI_BRANCH }} | |
name: abi | |
path: reference-abi | |
- name: update | |
run: sudo apt-get update | |
- name: dependencies | |
run: > | |
sudo apt-get install --yes gcc | |
gcc make pkg-config abigail-tools | |
libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev | |
libudev-dev libjson-c-dev liburcu-dev libcmocka-dev libedit-dev | |
- name: create ABI | |
run: make -Orecurse -j$(grep -c ^processor /proc/cpuinfo) abi.tar.gz | |
- name: save ABI | |
uses: actions/upload-artifact@v1 | |
with: | |
name: abi | |
path: abi | |
- name: compare ABI against reference | |
id: compare | |
continue-on-error: true | |
if: ${{ steps.reference.outcome == 'success' }} | |
run: make abi-test | |
- name: save differences | |
if: ${{ steps.compare.outcome == 'failure' }} | |
uses: actions/upload-artifact@v1 | |
with: | |
name: abi-test | |
path: abi-test | |
- name: fail | |
# MUST use >- here, otherwise the condition always evaluates to true | |
if: >- | |
${{ | |
env.ABI_BRANCH != github.ref_name && | |
(steps.reference.outcome == 'failure' || | |
steps.compare.outcome == 'failure') | |
}} | |
run: false |