Skip to content

Commit

Permalink
Cleanup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikWin committed Oct 12, 2024
1 parent c721ee6 commit 45da854
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Deps
run: bash ./scripts/deps.sh
run: bash ./scripts/deps_ci.sh
- name: Build vidformer docs
run: cargo doc --no-deps -p vidformer
- name: Install mdbook
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Deps
run: bash ./scripts/deps.sh
run: bash ./scripts/deps_ci.sh
- name: Check Build
run: cargo check
- name: Publish
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Deps
run: bash ./scripts/deps.sh
run: bash ./scripts/deps_ci.sh
- name: Build release
run: cargo build --release && cp ./target/release/vidformer-cli ./vidformer-cli-ubuntu22.04-amd64
- name: Upload release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Deps
run: bash ./scripts/deps.sh
run: bash ./scripts/deps_ci.sh
- name: Download Test Video
run: curl -O https://f.dominik.win/data/dve2/tos_720p.mp4
- name: Build Debug
Expand Down
54 changes: 0 additions & 54 deletions scripts/deps.sh

This file was deleted.

38 changes: 38 additions & 0 deletions scripts/deps_apt_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

set -e

sudo apt update
sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
git-core \
libass-dev \
libfreetype6-dev \
libgnutls28-dev \
libmp3lame-dev \
libsdl2-dev \
libtool \
libva-dev \
libvdpau-dev \
libvorbis-dev \
libxcb1-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev \
libvpx-dev \
libopus-dev \
libx264-dev \
libfdk-aac-dev \
libclang-dev \
valgrind \
clang \
libopencv-dev
8 changes: 8 additions & 0 deletions scripts/deps_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

bash ./scripts/deps_apt_ci.sh
bash ./scripts/deps_ffmpeg.sh
./scripts/deps_rust.sh
./scripts/deps_python.sh
13 changes: 13 additions & 0 deletions scripts/deps_ffmpeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

rm -rf ffmpeg
curl https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz | tar xJ
mv ffmpeg-7.0 ffmpeg
pushd ffmpeg
mkdir build
./configure --prefix=${PWD}/build --pkg-config-flags="--static" --enable-debug --extra-cflags="-g" --enable-nonfree --enable-gpl --enable-libx264 --enable-libvpx --enable-libfdk-aac --disable-stripping --disable-decoder=exr,phm
make -j$(nproc)
make install
popd
7 changes: 7 additions & 0 deletions scripts/deps_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e

pip3 install --upgrade pip # There's some bug that causes installing vidformer-py to fail in CI without this
pip3 install pytest
pip3 install -r snake-pit/requirements.txt
5 changes: 5 additions & 0 deletions scripts/deps_rust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
Empty file modified scripts/valgrind_test.sh
100644 → 100755
Empty file.

0 comments on commit 45da854

Please sign in to comment.