-
Notifications
You must be signed in to change notification settings - Fork 117
adding CI workflow for creating mpv binary and debian .deb package
#245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ilkermeliksitki
wants to merge
44
commits into
mpv-player:master
Choose a base branch
from
ilkermeliksitki:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
9279413
add workflow to build mpv binary
ilkermeliksitki ae4bc75
minor fixes
ilkermeliksitki 9c1955f
fix syntax error by adding backslash
ilkermeliksitki b6b4a36
add the remaining dependencies
ilkermeliksitki 789743b
delete trailing space
ilkermeliksitki 1c5e4ca
add sudo to `apt clean` command
ilkermeliksitki 60b578c
add install step and change the verifying command
ilkermeliksitki 308a24e
first attempt to create `.deb` package for mpv
ilkermeliksitki ade7fad
add checking mechanism for the existence of `.deb` file
ilkermeliksitki d080a14
rename the workflow and make it more descriptive
ilkermeliksitki 927966d
use `apt-get` instead of `apt` in the script
ilkermeliksitki f33b5f7
Update .github/workflows/build_mpv_binary_and_deb_package.yml
ilkermeliksitki e7126e1
delete `clang`
ilkermeliksitki 3d9f74b
simplify the step of checking debian package
ilkermeliksitki 4cf74d7
delete `python3-pip` and `python3.12-venv`
ilkermeliksitki fe01d85
delete one of the `lua` versions
ilkermeliksitki 63171fc
delete unnecessary encoders
ilkermeliksitki 8911434
delete `nodejs`
ilkermeliksitki b86ae11
delete `libcaca`
ilkermeliksitki 87f0c1e
add `libmp3lame-dev` and `libx264-dev`
ilkermeliksitki a664c8d
replace debian/compat with debhelper-compat
ilkermeliksitki 3dda039
Revert "replace debian/compat with debhelper-compat"
ilkermeliksitki d0f10f5
suggested changes applied
ilkermeliksitki 7c362f7
check the existence of `.deb` file
ilkermeliksitki 8fe14cc
delete enable source repository part
ilkermeliksitki 6c8b5db
build-essential package is already installed
ilkermeliksitki 7fdaf7f
debian package build attempt 1
ilkermeliksitki 6ea66d2
add the run key for `verify package creation` step
ilkermeliksitki b0a19d7
add libmpv-dev library
ilkermeliksitki 3f6ce9e
Revert "add libmpv-dev library"
ilkermeliksitki cce2eb6
Fix trial of linkage error of libass during "rebuild" step
ilkermeliksitki c489fdf
Revert "Fix trial of linkage error of libass during "rebuild" step"
ilkermeliksitki 0197339
Merge branch 'mpv-player:master' into master
ilkermeliksitki 98f76f1
add pwd for debugging purposes
ilkermeliksitki a91fae3
change update.sh to update
ilkermeliksitki 471da57
add devscript to build debian package
ilkermeliksitki fbf558e
add equivs package
ilkermeliksitki 4a1d8cb
delete the debuggin pwd line
ilkermeliksitki 6b2b561
the number of thread is not assumed
ilkermeliksitki 5181712
Update .github/workflows/build_debian_package.yml
ilkermeliksitki 6de7142
run the action every day
ilkermeliksitki 43f72b2
delete apt-get clean
ilkermeliksitki 41c51fd
delete apt clear for mpv build
ilkermeliksitki 4cc0842
use all available cores in rebuild instead of fixed j4
ilkermeliksitki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| name: Build mpv binary and create debian package | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| build-essential \ | ||
| clang \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| yasm \ | ||
| git \ | ||
| meson \ | ||
| ninja-build \ | ||
| autoconf \ | ||
| automake \ | ||
| libtool \ | ||
| pkg-config \ | ||
| libfreetype6-dev \ | ||
| libfribidi-dev \ | ||
| libfontconfig1-dev \ | ||
| libasound2-dev \ | ||
| pulseaudio \ | ||
| libx11-dev \ | ||
| libxss-dev \ | ||
| libvdpau-dev \ | ||
| libgl-dev \ | ||
| libxv-dev \ | ||
| libjpeg-dev \ | ||
| libssl-dev \ | ||
| libx264-dev \ | ||
| libmp3lame-dev \ | ||
| libfdk-aac-dev \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| python3-pip \ | ||
| python3.12-venv \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| libharfbuzz-dev \ | ||
| nasm \ | ||
| liblua5.1-0-dev \ | ||
| liblua5.2-dev \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| libxext-dev \ | ||
| libxrandr-dev \ | ||
| libxinerama-dev \ | ||
| libxv-dev \ | ||
| libwayland-dev \ | ||
| nodejs \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| libmujs-dev \ | ||
| liblcms2-dev \ | ||
| libarchive-dev \ | ||
| libbluray-dev \ | ||
| libavdevice-dev \ | ||
| cmake \ | ||
| libuchardet-dev \ | ||
| libjack-dev \ | ||
| libopenal-dev \ | ||
| libpipewire-0.3-dev \ | ||
| libpulse-dev \ | ||
| libsndio-dev \ | ||
| libcaca-dev \ | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| libdrm-dev \ | ||
| libsixel-dev \ | ||
| wayland-protocols \ | ||
| libxkbcommon-dev \ | ||
| libxpresent-dev \ | ||
| libegl1-mesa-dev \ | ||
| libvulkan-dev \ | ||
| libva-dev \ | ||
| libshaderc-dev \ | ||
| && sudo apt-get clean | ||
|
|
||
| - name: Build mpv binary | ||
| run: | | ||
| ./rebuild -j4 | ||
|
|
||
| - name: Install mpv binary | ||
| run: | | ||
| sudo ./install | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: Verify mpv binary | ||
| run: | | ||
| mpv --version | ||
|
|
||
| - name: Create debian package | ||
| run: | | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # enable source repositories | ||
| sudo sed -i 's/^Types: deb/Types: deb deb-src/g' /etc/apt/sources.list.d/ubuntu.sources | ||
| sudo apt-get update | ||
| # install dependencies mentioned in debian/control | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| sudo apt-get install -y \ | ||
| ladspa-sdk \ | ||
| libbs2b-dev \ | ||
| libdisplay-info-dev \ | ||
| libdav1d-dev \ | ||
| libepoxy-dev \ | ||
| libgl1-mesa-dev \ | ||
| libgnutls28-dev \ | ||
| libmodplug-dev \ | ||
| libopus-dev \ | ||
| libopencore-amrnb-dev \ | ||
| libopencore-amrwb-dev \ | ||
| librtmp-dev \ | ||
| libssh-dev \ | ||
| libsoxr-dev \ | ||
| libspeex-dev \ | ||
| libv4l-dev \ | ||
| libvorbis-dev \ | ||
| libvo-amrwbenc-dev \ | ||
| libunwind-dev \ | ||
| libvpx-dev \ | ||
| libxvidcore-dev \ | ||
| && sudo apt-get clean | ||
|
|
||
| # build dependencies | ||
| sudo apt-get build-dep mpv | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # build package | ||
| sudo dpkg-buildpackage -us -uc | ||
|
|
||
| # check if package is created | ||
| if [ -f ../mpv*.deb ]; then | ||
| echo "mpv debian package creation is successful" | ||
| else | ||
| echo "mpv debian package creation failed!" | ||
| exit 1 | ||
| fi | ||
ilkermeliksitki marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.