Fix backwards compatibility usage of Get*ProcAddrTable #197
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
on: | |
pull_request: | |
branches: [master] | |
permissions: read-all | |
jobs: | |
# Use https://lvc.github.io/abi-compliance-checker/ to compare builds | |
# of pull requests against master. Compares checkouts of github.base_ref and | |
# github.head_ref. | |
check-abi-last-release: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'oneapi-src' | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y elfutils universal-ctags vtable-dumper | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags | |
- uses: actions-ecosystem/action-get-latest-tag@v1 | |
id: get-latest-tag | |
with: | |
semver_only: true | |
- name: Checkout base | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ steps.get-latest-tag.outputs.tag }} | |
clean: true | |
path: base | |
- name: Checkout head | |
uses: actions/checkout@v3 | |
with: | |
clean: true | |
path: head | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Build debug base | |
run: | | |
mkdir base/build | |
cd base/build | |
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make -j$(nproc) | |
- name: Build debug head | |
run: | | |
mkdir head/build | |
cd head/build | |
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make -j$(nproc) | |
- name: Download and setup abi-dumper | |
run: | | |
git clone https://github.com/lvc/abi-dumper.git abi-dumper | |
cp abi-dumper/abi-dumper.pl . | |
chmod +x abi-dumper.pl | |
- name: Generate dump for base | |
run: | | |
./abi-dumper.pl \ | |
./base/build/lib/libze_loader.so \ | |
-lver $(cat ./base/build/VERSION) \ | |
-public-headers ./base/include \ | |
-o ./base.dump | |
- name: Generate dump for head | |
run: | | |
./abi-dumper.pl \ | |
./head/build/lib/libze_loader.so \ | |
-lver $(cat ./head/build/VERSION)-1 \ | |
-public-headers ./head/include \ | |
-o ./head.dump | |
- name: Download and setup abi-compliance-checker | |
run: | | |
wget https://github.com/lvc/abi-compliance-checker/tarball/master -O abi-compliance-checker.tar.gz | |
tar -xzf abi-compliance-checker.tar.gz | |
chmod +x lvc-abi-compliance-checker-*/abi-compliance-checker.pl | |
- name: Compare dumps | |
run: | | |
lvc-abi-compliance-checker-*/abi-compliance-checker.pl \ | |
-l libze_loader \ | |
-old base.dump \ | |
-new head.dump \ | |
-report-path release_report.html | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: abi-report | |
path: release_report.html | |
check-abi-master: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'oneapi-src' | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y elfutils universal-ctags vtable-dumper | |
- name: Checkout base | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.base_ref }} | |
clean: true | |
path: base | |
- name: Checkout head | |
uses: actions/checkout@v3 | |
with: | |
clean: true | |
path: head | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Build debug base | |
run: | | |
mkdir base/build | |
cd base/build | |
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make -j$(nproc) | |
- name: Build debug head | |
run: | | |
mkdir head/build | |
cd head/build | |
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug .. | |
make -j$(nproc) | |
- name: Download and setup abi-dumper | |
run: | | |
git clone https://github.com/lvc/abi-dumper.git abi-dumper | |
cp abi-dumper/abi-dumper.pl . | |
chmod +x abi-dumper.pl | |
- name: Generate dump for base | |
run: | | |
./abi-dumper.pl \ | |
./base/build/lib/libze_loader.so \ | |
-lver $(cat ./base/build/VERSION) \ | |
-public-headers ./base/include \ | |
-o ./base.dump | |
- name: Generate dump for head | |
run: | | |
./abi-dumper.pl \ | |
./head/build/lib/libze_loader.so \ | |
-lver $(cat ./head/build/VERSION)-1 \ | |
-public-headers ./head/include \ | |
-o ./head.dump | |
- name: Download and setup abi-compliance-checker | |
run: | | |
wget https://github.com/lvc/abi-compliance-checker/tarball/master -O abi-compliance-checker.tar.gz | |
tar -xzf abi-compliance-checker.tar.gz | |
chmod +x lvc-abi-compliance-checker-*/abi-compliance-checker.pl | |
- name: Compare dumps | |
run: | | |
lvc-abi-compliance-checker-*/abi-compliance-checker.pl \ | |
-l libze_loader \ | |
-old base.dump \ | |
-new head.dump \ | |
-report-path master_report.html | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: abi-report | |
path: master_report.html |