diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 0ac766a1b..6507337da 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -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: @@ -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 diff --git a/.github/workflows/test-kernel.yml b/.github/workflows/test-kernel.yml index 3beb16989..9a053dcd3 100644 --- a/.github/workflows/test-kernel.yml +++ b/.github/workflows/test-kernel.yml @@ -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 < 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"