Skip to content

Commit 5f12f26

Browse files
committed
Add workflow.
1 parent eabff77 commit 5f12f26

File tree

3 files changed

+453
-0
lines changed

3 files changed

+453
-0
lines changed

.github/workflows/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# docker build -t ossrs/srs:ffmpeg-fate
2+
# docker push ossrs/srs:ffmpeg-fate
3+
FROM ubuntu:22.04
4+
5+
RUN apt-get update && \
6+
apt-get install -y build-essential git rsync make nasm pkg-config libssl-dev &&\
7+
rm -rf /var/lib/apt/lists/*
8+
9+
WORKDIR /opt
10+
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
11+
12+
WORKDIR /opt/ffmpeg
13+
RUN ./configure --enable-openssl --enable-version3
14+
RUN make -j$(nproc)
15+
16+
RUN make fate-rsync SAMPLES=/opt/ffmpeg/fate-suite
17+
RUN du -sh /opt/ffmpeg/fate-suite
18+
ENV FATE_SAMPLES=/opt/ffmpeg/fate-suite

.github/workflows/fate-cache.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "FFmpeg FATE Cache"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions: read-all
7+
8+
jobs:
9+
build:
10+
name: "Build FFmpeg Fate Cache"
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
- name: Login to docker hub
15+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
16+
with:
17+
username: "${{ secrets.DOCKER_USERNAME }}"
18+
password: "${{ secrets.DOCKER_PASSWORD }}"
19+
- name: Build FFmpeg Fate Cache
20+
run: |
21+
set -euxo pipefail
22+
docker build -t ossrs/srs:ffmpeg-fate -f .github/workflows/Dockerfile .
23+
- name: Push FFmpeg Fate Cache
24+
run: |
25+
set -euxo pipefail
26+
docker push ossrs/srs:ffmpeg-fate
27+
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)