Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b420dcf

Browse files
committed
Cache VS Code binary; cull videos
1 parent 7654218 commit b420dcf

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,23 @@ jobs:
5656
if: runner.os == 'Linux'
5757
- name: Start Screen Recording
5858
run: |
59-
mkdir -p $PWD/videos
59+
mkdir -p $PWD/videos-raw
6060
no_close=--no-close # uncomment to see ffmpeg output (i.e. leave stdio open)
61-
start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos/test.mp4
61+
start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos-raw/test.mp4
6262
# pid=`cat ~/var/run/ffmpeg.pid`
6363
# echo "Waiting for ffmpeg (pid $pid) to start recording (display $DISPLAY)..."
64-
# while [ ! -f $PWD/videos/test.mp4 ]; do
64+
# while [ ! -f $PWD/videos-raw/test.mp4 ]; do
6565
# echo -n .
6666
# sleep 3
6767
# done
6868
if: runner.os == 'Linux'
69-
# - name: Setup SSH Debugging
69+
- name: Cache VS Code Binary
70+
id: vscode-test
71+
uses: actions/cache@v3
72+
with:
73+
path: .vscode-test/
74+
key: ${{ runner.os }}-vscode-test
75+
# - name: SSH Debug Breakpoint
7076
# uses: lhotari/action-upterm@v1
7177
# with:
7278
# limit-access-to-actor: true
@@ -76,12 +82,16 @@ jobs:
7682
run: |
7783
start-stop-daemon --stop --pidfile ~/var/run/ffmpeg.pid
7884
sleep 3
79-
ffmpeg -i $PWD/videos/test.mp4 -vf format=yuv420p $PWD/videos/test-yuv420p.mp4
85+
mkdir -p $PWD/videos
86+
for f in $PWD/videos-raw/*.mp4; do
87+
out=`basename $f`
88+
ffmpeg -i $f -vf format=yuv420p $PWD/videos/$out
89+
done
8090
if: always() && runner.os == 'Linux'
8191
- name: Archive Screen Recording
8292
uses: actions/upload-artifact@v3
8393
with:
84-
name: test-video
94+
name: videos
8595
path: |
8696
videos/
8797
if: always() && runner.os == 'Linux'

0 commit comments

Comments
 (0)