Add FFmpeg installation and testing to workflows
- Introduce FFmpeg installation steps in both `pr-test.yml` and `unit-test.yml` workflows, allowing for video processing capabilities. - Add a test command to verify the FFmpeg installation by checking its version, ensuring successful integration into the CI pipeline.
This commit is contained in:
parent
b9cff8e049
commit
f2166bc847
2 changed files with 22 additions and 0 deletions
11
.github/workflows/pr-test.yml
vendored
11
.github/workflows/pr-test.yml
vendored
|
|
@ -1043,6 +1043,17 @@ jobs:
|
|||
- name: Start Redis
|
||||
run: docker run --name redis --publish 6379:6379 --detach redis:6
|
||||
|
||||
- name: Install FFmpeg 7.x
|
||||
run: |
|
||||
wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
tar -xf ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /usr/local/bin/
|
||||
sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/
|
||||
sudo chmod +x /usr/local/bin/ffmpeg /usr/local/bin/ffprobe
|
||||
|
||||
- name: Test FFmpeg
|
||||
run: ffmpeg -version
|
||||
|
||||
- name: Setup Go Tools
|
||||
run: make tools
|
||||
|
||||
|
|
|
|||
11
.github/workflows/unit-test.yml
vendored
11
.github/workflows/unit-test.yml
vendored
|
|
@ -765,6 +765,17 @@ jobs:
|
|||
- name: Start Redis
|
||||
run: docker run --name redis --publish 6379:6379 --detach redis:6
|
||||
|
||||
- name: Install FFmpeg 7.x
|
||||
run: |
|
||||
wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
tar -xf ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /usr/local/bin/
|
||||
sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/
|
||||
sudo chmod +x /usr/local/bin/ffmpeg /usr/local/bin/ffprobe
|
||||
|
||||
- name: Test FFmpeg
|
||||
run: ffmpeg -version
|
||||
|
||||
- name: Setup Go Tools
|
||||
run: make tools
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue