Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Jul 31, 2024
1 parent fdd1f4f commit d21e10a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .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-image.outputs.artifact-url }}
value: ${{ jobs.build.upload-kernel.outputs.artifact-url }}

jobs:
build:
Expand Down Expand Up @@ -54,6 +54,7 @@ jobs:
- uses: actions/upload-artifact@v4
id: upload-linux-kernel
with:
name: linux-kernel-image
name: linux-kernel
if-no-files-found: error
compression-level: 0
path: build/arch/x86/boot/bzImage
13 changes: 11 additions & 2 deletions .github/workflows/test-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,24 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: Build main.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KERNEL_URL: ${{ needs.build-linux-kernel.outputs.kernel-url }}
PYTHON: ${{ steps.py312.outputs.python-path }}
run: |
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}
unzip linux-kernel.zip
cat <<EOF > main.sh
export PYTHON=${PYTHON}
exec cargo test --workspace --all-targets --features=nightly,generate-large-test-files -- --include-ignored
EOF
chmod a+x main.sh
- name: Test
uses: danobi/vmtest-action@v0.6
uses: danobi/vmtest-action@master
with:
kernel_url: ${{ needs.build-linux-kernel.outputs.kernel-url }}
kernel: bzImage
command: "/bin/bash -c ${{ github.workspace }}/main.sh"

0 comments on commit d21e10a

Please sign in to comment.