integration-tests.yml 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: integration-tests
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. env:
  10. CARGO_TERM_COLOR: always
  11. jobs:
  12. test:
  13. runs-on: macos-latest
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: actions/checkout@v2
  17. with:
  18. repository: libbpf/libbpf
  19. path: libbpf
  20. - name: Install Pre-requisites
  21. run: |
  22. brew install qemu gnu-getopt coreutils cdrtools
  23. - name: Cache tmp files
  24. uses: actions/cache@v3
  25. with:
  26. path: |
  27. .tmp/*.qcow2
  28. .tmp/test_rsa
  29. .tmp/test_rsa.pub
  30. # FIXME: we should invalidate the cache on new bpf-linker releases.
  31. # For now we must manually delete the cache when we release a new
  32. # bpf-linker version.
  33. key: tmp-files-${{ hashFiles('test/run.sh') }}
  34. - name: Run integration tests
  35. run: test/run.sh ./libbpf