Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 219c44d

Browse files
committed
[chore] Try to add image with LTP testcases
1 parent 0c84473 commit 219c44d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: ${{ inputs.arch }}-testcases
21+
key: ${{ inputs.arch }}-testcases
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: ${{ inputs.arch }}-testcases
32+
key: ${{ inputs.arch }}-testcases

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)