From a60e5dd655c15e853351ffe676237feb445f36a6 Mon Sep 17 00:00:00 2001 From: Nekorouter Date: Wed, 22 May 2024 19:44:11 +0800 Subject: [PATCH] Add test job on self-hosted runner --- .github/workflows/th1520.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/th1520.yml b/.github/workflows/th1520.yml index 0357117afaa6a..a9a3338a2bb7d 100644 --- a/.github/workflows/th1520.yml +++ b/.github/workflows/th1520.yml @@ -17,10 +17,11 @@ env: KBUILD_BUILD_HOST: ci-riscv-builder KDEB_COMPRESS: none KDEB_CHANGELOG_DIST: unstable - TH1520_IMAGE_BASE_URL: https://mirror.iscas.ac.cn/revyos/extra/images/lpi4amain + TH1520_IMAGE_BASE_URL: https://mirrors.sdust.edu.cn/revyos/extra/images/lpi4amain TH1520_IMAGE_DATE: 20240127 TH1520_BOOT: boot-lpi4amain-20240127_105111.ext4.zst TH1520_ROOT: root-lpi4amain-20240127_105111.ext4.zst + TH1520_UBOOT: u-boot-with-spl-lpi4a-main.bin jobs: kernel: @@ -144,3 +145,18 @@ jobs: name: th1520-${{ matrix.name }} path: | *.ext4.zst + + test: + runs-on: [self-hosted, th1520] + needs: [ + kernel + ] + if: ${{ always() && !cancelled() && needs.kernel.result == 'success' }} + steps: + - name: 'Download artifact' + uses: actions/download-artifact@v4 + - name: Download th1520 u-boot + run: | + wget ${TH1520_IMAGE_BASE_URL}/${TH1520_IMAGE_DATE}/${TH1520_UBOOT} + - name: 'List all downloaded files' + run: ls -R $GITHUB_WORKSPACE \ No newline at end of file