Skip to content

Commit

Permalink
Add a check in GitHub Actions for leftover ".a" files in "/usr/local"
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Mar 24, 2022
1 parent b895030 commit 26ebe77
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ jobs:
run: |
git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
strategy="$(~/bashbrew/scripts/github-actions/generate.sh)"
# https://github.com/docker-library/python/pull/706 (ensure we don't have any unexpected ".a" leftovers in "/usr/local")
strategy="$(jq <<<"$strategy" -c '
.matrix.include |= map(
.runs.test += "\n" + (
.meta.entries
| map(
.tags[0]
| "aFiles=\"$(docker run --rm \(. | @sh) find /usr/local -name \"*.a\" | tee /dev/stderr)\"; [ -z \"$aFiles\" ]"
)
| join("\n"))
)
')"
jq . <<<"$strategy" # sanity check / debugging aid
echo "::set-output name=strategy::$strategy"
Expand Down

0 comments on commit 26ebe77

Please sign in to comment.