Skip to content

Commit a0af93e

Browse files
committed
Simplify test video artifact packaging in CI workflow
Replaced individual file handling with tarball compression for test video artifacts. This streamlines the process and reduces complexity in managing files during failures on Ubuntu runners. Updated the upload path to reflect the new tarball format.
1 parent b150b17 commit a0af93e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,15 @@ jobs:
6060

6161
- name: Capture Test Artifacts on Failure
6262
if: failure() && matrix.os == 'ubuntu-latest'
63-
run: |
64-
mkdir -p artifacts/videos
65-
latest_file=$(ls -Art video | tail -n 1)
66-
if [ -n "$latest_file" ]; then
67-
cp "video/$latest_file" "artifacts/videos/latest-test-video.avi"
68-
fi
63+
run: tar -cvzf video.tgz ./video
6964
shell: bash
7065

7166
- name: Upload Test Video Artifact
7267
if: failure() && matrix.os == 'ubuntu-latest'
7368
uses: actions/upload-artifact@v4
7469
with:
7570
name: latest-test-video
76-
path: artifacts/videos/latest-test-video.avi
71+
path: video.tgz
7772
overwrite: true
7873

7974
static-tests:

0 commit comments

Comments
 (0)