Skip to content

Commit

Permalink
Test build
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Aug 29, 2024
1 parent 128204a commit 8fc8904
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/kernels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ name: Kernels

on:
push:
branches: [ "master" ]
paths:
- 'tests/KERNELS'

concurrency:
# Ensure only a single instance of this job is run at any time
Expand All @@ -32,25 +29,21 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
existing=$(gh release view test_assets --json assets --jq '.[][].name')
# Begin multiline output parameter
echo "NEEDED_KERNELS<<MULTILINE_EOF" >> "$GITHUB_OUTPUT"
echo "$existing" | python3 -c '
python3 -c '
import sys
# Calculate kernels that have already been uploaded
existing = {line.strip() for line in sys.stdin}
with open("./tests/KERNELS", "r") as f:
lines = {line.strip() for line in f if line.strip()}
# Print to stdout kernel we need to build and upload
for line in lines:
parts = line.split()
name = f"bzImage-{parts[0]}-{parts[1]}"
if name not in existing:
print(line)
print(line)
' | tee -a "$GITHUB_OUTPUT"
# End multiline output parameter
Expand Down

0 comments on commit 8fc8904

Please sign in to comment.