This repository was archived by the owner on Nov 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +41
-1
lines changed
Expand file tree Collapse file tree 4 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Download oscomp testcases
2+
3+ inputs :
4+ image-release-url :
5+ description : ' URL of the image release'
6+ required : true
7+ type : string
8+ arch :
9+ description : ' Architecture of testcases'
10+ required : true
11+ type : string
12+
13+ runs :
14+ using : " composite"
15+ steps :
16+ - name : Cache Testcases
17+ id : cache-testcases
18+ uses : actions/cache/restore@v4
19+ with :
20+ path : sdcard-${{ inputs.arch }}.img.gz
21+ key : sdcard-${{ inputs.arch }}.img.gz
22+ - name : Download testcases
23+ if : steps.cache-testcases.outputs.cache-hit != 'true'
24+ shell : bash
25+ run : |
26+ IMAGE_URL=${{ inputs.image-release-url }}/sdcard-${{ inputs.arch }}.img.gz
27+ wget ${IMAGE_URL}
28+ - uses : actions/cache/save@v4
29+ if : steps.cache-testcases.outputs.cache-hit != 'true'
30+ with :
31+ path : sdcard-${{ inputs.arch }}.img.gz
32+ key : sdcard-${{ inputs.arch }}.img.gz
Original file line number Diff line number Diff line change @@ -121,6 +121,13 @@ jobs:
121121 - uses : ./.github/workflows/actions/setup-qemu
122122 with :
123123 qemu-version : ${{ env.qemu-version }}
124+ - uses : ./.github/workflows/actions/setup-testcases
125+ with :
126+ image-release-url : https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.2
127+ arch : ${{ matrix.arch }}
128+ - name : Unzip testcases
129+ run : |
130+ gunzip sdcard-${{ matrix.arch }}.img.gz
124131 - name : Build python environment
125132 run : sudo apt-get install -y python3 python3-pip
126133 - name : Run tests for oscomp musl testcases
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ testcases_type=(
7777 " libctest"
7878)
7979
80- IMG_URL=https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.1 /sdcard-$ARCH .img.gz
80+ IMG_URL=https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.2 /sdcard-$ARCH .img.gz
8181if [ ! -f sdcard-$ARCH .img ]; then
8282 echo -e " ${CYAN_C} Downloading${END_C} $IMG_URL "
8383 wget -q $IMG_URL
You can’t perform that action at this time.
0 commit comments