Skip to content

Commit

Permalink
Add test job on self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
nekorouter committed May 22, 2024
1 parent 25c72df commit d44230d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/th1520.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -138,9 +139,24 @@ jobs:
zstd root-lpi4amain-ci-${TIMESTAMP}.ext4
- name: 'Upload Artifact EMMC'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 30
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

0 comments on commit d44230d

Please sign in to comment.