Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/alpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust clang gcc libarchive pkgconf --noconfirm --needed
run: pacman -Syu rust clang gcc libarchive pkgconf diffutils --noconfirm --needed

- name: Checkout
uses: actions/checkout@v2
Expand All @@ -27,6 +27,12 @@ jobs:
run: cargo test --features generate,mtree
working-directory: alpm

- name: Check committed bindings are up to date
run: |
generated=$(find target -name ffi_generated.rs -path '*/alpm-sys-*/out/*' | head -1)
if [ -z "$generated" ]; then echo "ffi_generated.rs not found"; exit 1; fi
diff -u alpm-sys/src/ffi.rs "$generated"

test-git:
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -54,3 +60,9 @@ jobs:
- name: Test
run: cargo test --features generate,git,mtree
working-directory: alpm

- name: Check committed git bindings are up to date
run: |
generated=$(find target -name ffi_generated.rs -path '*/alpm-sys-*/out/*' | head -1)
if [ -z "$generated" ]; then echo "ffi_generated.rs not found"; exit 1; fi
diff -u alpm-sys/src/ffi_git.rs "$generated"
Loading