mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-26 13:44:19 +08:00
ABI check: Use base commit / branch of a PR for ABI comparison
The base commit is needed for comparison when a PR has multiple commits.
This commit is contained in:
parent
1690d43f7f
commit
d637fe6f3e
7
.github/workflows/abicheck.yml
vendored
7
.github/workflows/abicheck.yml
vendored
@ -34,16 +34,12 @@ jobs:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
path: previous
|
||||
fetch-depth: 2
|
||||
ref: ${{ github.event.pull_request.base.ref }}
|
||||
|
||||
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Checkout previous
|
||||
working-directory: previous
|
||||
run: git checkout HEAD^
|
||||
|
||||
- name: Build current
|
||||
working-directory: current
|
||||
run: |
|
||||
@ -54,6 +50,7 @@ jobs:
|
||||
- name: Build previous
|
||||
working-directory: previous
|
||||
run: |
|
||||
echo "Commit-id before PR: $(git show HEAD)"
|
||||
pip install -r requirements.txt
|
||||
meson setup build --buildtype=debug
|
||||
meson compile -C build
|
||||
|
Loading…
Reference in New Issue
Block a user