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:
121
121
- uses : ./.github/workflows/actions/setup-qemu
122
122
with :
123
123
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
124
131
- name : Build python environment
125
132
run : sudo apt-get install -y python3 python3-pip
126
133
- name : Run tests for oscomp musl testcases
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ testcases_type=(
77
77
" libctest"
78
78
)
79
79
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
81
81
if [ ! -f sdcard-$ARCH .img ]; then
82
82
echo -e " ${CYAN_C} Downloading${END_C} $IMG_URL "
83
83
wget -q $IMG_URL
You can’t perform that action at this time.
0 commit comments