[ci,abi] add suppressions

This commit is contained in:
akallabeth 2024-02-27 15:03:01 +01:00 committed by akallabeth
parent 721c1b9fcd
commit 7c320056b3
2 changed files with 12 additions and 2 deletions

View File

@ -85,6 +85,7 @@ jobs:
run: |
mkdir -p checker
cp ci/cmake-preloads/config-abi.txt checker/
cp scripts/abi-suppr.txt checker/
curl https://gist.githubusercontent.com/akallabeth/aa35caed0d39241fa17c3dc8a0539ea3/raw/ef12f8c720ac6be51aa1878710e2502b1b39cf4c/check-abi -o checker/check-abi
chmod +x checker/check-abi
echo "GITHUB_BASE_REF=$GITHUB_BASE_REF"
@ -98,4 +99,4 @@ jobs:
BASE_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || inputs.API_BASE_REF }}
run: |
echo "BASE_REF=$BASE_REF"
./checker/check-abi --parameters="-Cchecker/config-abi.txt" $BASE_REF $(git rev-parse HEAD)
./checker/check-abi -s checker/abi-suppr.txt --parameters="-Cchecker/config-abi.txt" $BASE_REF $(git rev-parse HEAD)

9
scripts/abi-suppr.txt Normal file
View File

@ -0,0 +1,9 @@
# settings are opaque, ignore all changes
[suppress_type]
type_kind = struct
name = rdp_settings
# allow insertions at end of structs
[suppress_type]
type_kind = struct
has_data_members_inserted_at = end