amzn/2/x86_64 update on 2026-07-11 #49
Workflow file for this run
This file contains hidden or 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
| name: btfhub-archive CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - '**.btf.tar.xz' | |
| - '**.hasbtf' | |
| - '**.failed' | |
| jobs: | |
| check-btf: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 2 | |
| sparse-checkout: | | |
| README.md | |
| sparse-checkout-cone-mode: false | |
| - run: | | |
| for file in $(git diff --name-only HEAD^1 HEAD | xargs); do | |
| if [[ "$file" == *".btf.tar.xz" ]]; then | |
| echo "Checking $file" | |
| git sparse-checkout add /"$file" | |
| if [[ "$(tar tf $file | wc -l)" != "1" ]]; then | |
| echo "$file should only have one .btf file within" | |
| exit 1 | |
| fi | |
| fi | |
| done |