Skip to content

Commit 3c7cba3

Browse files
authored
download and inject video_clips
1 parent 947e801 commit 3c7cba3

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

.github/actions/inject/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: IRIS Injection
2-
description: Inject IRIS app into rootfs image
2+
description: Inject IRIS app and video content tarball into rootfs image
33

44
inputs:
55
machine:
@@ -80,7 +80,6 @@ runs:
8080
ls -l /dev/loop* || true
8181
losetup -a || true
8282
83-
# Try to expose more loop devices in the container
8483
modprobe loop max_loop=64 || true
8584
for i in $(seq 0 63); do
8685
[ -b /dev/loop$i ] || mknod -m 660 /dev/loop$i b 7 "$i" || true
@@ -124,11 +123,15 @@ runs:
124123
mkdir -p /tmp/rootfs/data/vendor/iris_test_app/input
125124
mkdir -p /tmp/rootfs/data/vendor/iris_test_app/output
126125
127-
echo "📥 Copying iris-test-app payload from workspace..."
126+
echo "📥 Copying IRIS app payload from workspace..."
128127
cp -a "${WORKSPACE}/v4l-video-test-app/build/." /tmp/rootfs/data/vendor/iris_test_app/
129128
129+
echo "📥 Copying video tarball into rootfs (no extraction)..."
130+
cp -a "${WORKSPACE}/downloads/video_clips_iris.tar.gz" /tmp/rootfs/data/vendor/iris_test_app/
131+
130132
echo "🔍 Verifying injected files..."
131133
ls -larth /tmp/rootfs/data/vendor/iris_test_app
134+
ls -larth /tmp/rootfs/data/vendor/iris_test_app/input
132135
133136
echo "📤 Syncing changes..."
134137
sync

.github/workflows/sync-and-build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,25 @@ jobs:
9292
echo "✅ Download complete"
9393
ls -la "${{ github.workspace }}/v4l-video-test-app/build/"
9494
95+
- name: Download the video-contents for testing
96+
shell: bash
97+
env:
98+
WORKSPACE: ${{ github.workspace }}
99+
run: |
100+
set -euo pipefail
101+
mkdir -p "${{ github.workspace }}/downloads"
102+
echo "Downloading the video-content files"
103+
wget -q \
104+
"https://github.com/qualcomm-linux/qcom-linux-testkit/releases/download/IRIS-Video-Files-v1.0/video_clips_iris.tar.gz" \
105+
-O "${{ github.workspace }}/downloads/video_clips_iris.tar.gz"
106+
107+
[ -f "$WORKSPACE/downloads/video_clips_iris.tar.gz" ] || {
108+
echo "❌ Failed to download video_clips_iris.tar.gz"
109+
exit 1
110+
}
111+
112+
ls -la "${{ github.workspace }}/downloads/"
113+
95114
- name: Inject Iris test app to rootfs
96115
uses: qualcomm-linux/video-driver/.github/actions/inject@meta-qcom_full-build
97116
with:
@@ -139,7 +158,7 @@ jobs:
139158
140159
echo "✅ Tarball created: $tarball"
141160
142-
- name: Upload artifacts to S3
161+
- name:
143162
id: upload-artifacts
144163
uses: qualcomm-linux/video-driver/.github/actions/aws_s3_helper@meta-qcom_full-build
145164
with:

0 commit comments

Comments
 (0)