-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: master
Are you sure you want to change the base?
Changes from 44 commits
9279413
ae4bc75
9c1955f
b6b4a36
789743b
1c5e4ca
60b578c
308a24e
ade7fad
d080a14
927966d
f33b5f7
e7126e1
3d9f74b
4cf74d7
fe01d85
63171fc
8911434
b86ae11
87f0c1e
a664c8d
3dda039
d0f10f5
7c362f7
8fe14cc
6c8b5db
7fdaf7f
6ea66d2
b0a19d7
3f6ce9e
cce2eb6
c489fdf
0197339
98f76f1
a91fae3
471da57
fbf558e
4a1d8cb
6b2b561
5181712
6de7142
43f72b2
41c51fd
4cc0842
ba9e779
12ca478
e1126d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,85 @@ | ||||||
| name: Build debian package | ||||||
|
|
||||||
| on: | ||||||
| schedule: | ||||||
| - cron: "0 0 * * *" | ||||||
| workflow_dispatch: | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| runs-on: ubuntu-24.04 | ||||||
|
|
||||||
| steps: | ||||||
| - name: Checkout repository | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Install dependencies | ||||||
| run: | | ||||||
| sudo apt-get update | ||||||
| sudo apt-get install --no-install-recommends -y \ | ||||||
| build-essential \ | ||||||
| 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 \ | ||||||
| libharfbuzz-dev \ | ||||||
| nasm \ | ||||||
| liblua5.2-dev \ | ||||||
| libxext-dev \ | ||||||
| libxrandr-dev \ | ||||||
| libxinerama-dev \ | ||||||
| libxv-dev \ | ||||||
| libwayland-dev \ | ||||||
| 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 \ | ||||||
| libdrm-dev \ | ||||||
| libsixel-dev \ | ||||||
| wayland-protocols \ | ||||||
| libxkbcommon-dev \ | ||||||
| libxpresent-dev \ | ||||||
| libegl1-mesa-dev \ | ||||||
| libvulkan-dev \ | ||||||
| libva-dev \ | ||||||
| libshaderc-dev \ | ||||||
| devscripts \ | ||||||
| equivs | ||||||
|
sfan5 marked this conversation as resolved.
|
||||||
|
|
||||||
| - name: Prepare Debian package | ||||||
| run: | | ||||||
| ./update | ||||||
| mk-build-deps -s sudo -i | ||||||
|
|
||||||
| - name: Build Debian package | ||||||
| run: | | ||||||
| dpkg-buildpackage -uc -us -b -j`nproc` | ||||||
|
|
||||||
| - name: Verify package creation | ||||||
| run: | | ||||||
| ls ../mpv_*.deb || exit 1 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. may I ask why is this necessary?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's nice to see how big the resulting deb file is
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you. It is added. |
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Build mpv binary | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| build-essential \ | ||
| 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 \ | ||
| libharfbuzz-dev \ | ||
| nasm \ | ||
| liblua5.2-dev \ | ||
| libxext-dev \ | ||
| libxrandr-dev \ | ||
| libxinerama-dev \ | ||
| libxv-dev \ | ||
| libwayland-dev \ | ||
| 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 \ | ||
| libdrm-dev \ | ||
| libsixel-dev \ | ||
| wayland-protocols \ | ||
| libxkbcommon-dev \ | ||
| libxpresent-dev \ | ||
| libegl1-mesa-dev \ | ||
| libvulkan-dev \ | ||
| libva-dev \ | ||
| libshaderc-dev | ||
|
|
||
| - name: Build mpv binary | ||
| run: | | ||
| ./rebuild -j`nproc` | ||
|
|
||
| - name: Verify mpv binary | ||
| run: | | ||
| ./mpv/build/mpv --version || exit 1 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you considered adding periodic build?
For example we could build this every day at midnight or every week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only for this
build_debian_package.ymlor should I do it forbuild_mpv_binary.ymlas well?