Skip to content

Commit

Permalink
hotfix: download precompiled ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
gBillal committed Dec 27, 2023
1 parent 66c6431 commit d375062
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM hexpm/elixir:1.15.7-erlang-26.1.2-debian-bullseye-20231009-slim
# install build dependencies
RUN \
apt-get update && apt-get install -y \
wget \
xz-utils \
npm \
git \
make \
Expand Down Expand Up @@ -30,6 +32,10 @@ COPY assets assets
COPY apps apps
COPY rel rel

RUN mkdir -p _build/prod/bundlex_precompiled/httpsgithub.comBtbNFFmpeg-Buildsreleasesdownloadlatestffmpeg-n6.0-latest-linuxarm64-gpl-shared-6.0.tar.xz && \
wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.1-latest-linuxarm64-gpl-shared-6.1.tar.xz && \
tar -xvf ffmpeg-n6.1-latest-linuxarm64-gpl-shared-6.1.tar.xz -C _build/prod/bundlex_precompiled/httpsgithub.comBtbNFFmpeg-Buildsreleasesdownloadlatestffmpeg-n6.0-latest-linuxarm64-gpl-shared-6.0.tar.xz --strip-components=1

RUN mix deps.get
RUN mix deps.compile
RUN mix do release
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:

- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install npm libsrtp2-dev libturbojpeg-dev

# Hack: Download precompiled ffmpeg since the membrane plugin are broken.
- name: Get precompiled ffmpeg
run: >
mkdir -p _build/prod/bundlex_precompiled/httpsgithub.comBtbNFFmpeg-Buildsreleasesdownloadlatestffmpeg-n6.0-latest-linux64-gpl-shared-6.0.tar.xz
&& wget https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n6.1-latest-linux64-gpl-shared-6.1.tar.xz
&& tar -xvf ffmpeg-n6.1-latest-linux64-gpl-shared-6.1.tar.xz -C _build/prod/bundlex_precompiled/httpsgithub.comBtbNFFmpeg-Buildsreleasesdownloadlatestffmpeg-n6.0-latest-linux64-gpl-shared-6.0.tar.xz --strip-components=1
- name: Get deps
run: mix deps.get --only prod
Expand Down

0 comments on commit d375062

Please sign in to comment.