Skip to content

Commit

Permalink
Next
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Jul 31, 2024
1 parent d21e10a commit 7c3f0b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
outputs:
kernel-url:
description: "URL of the built (and uploaded) Linux kernel"
value: ${{ jobs.build.upload-kernel.outputs.artifact-url }}
value: ${{ jobs.upload-kernel.outputs.artifact-url }}

jobs:
build:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ jobs:
KERNEL_URL: ${{ needs.build-linux-kernel.outputs.kernel-url }}
PYTHON: ${{ steps.py312.outputs.python-path }}
run: |
# Yes, there appears to be no way to just retrieve the
# uploaded artifact. One can't use actions/download-artifact
# and provide any of the outputs of actions/upload-artifact.
# Neither is it possible to just download the thing directly,
# because contents are unconditionally zipped. Good. Lord.
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-o linux-kernel.zip \
${KERNEL_URL}
"${KERNEL_URL}"
unzip linux-kernel.zip
cat <<EOF > main.sh
export PYTHON=${PYTHON}
Expand Down

0 comments on commit 7c3f0b3

Please sign in to comment.