Skip to content

mpv AppImage2

mpv AppImage2 #97

Workflow file for this run

name: mpv AppImage2
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 16 1/7 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: build
run: |
sudo apt update
sudo apt install libxpresent-dev libpulse-dev libxcb-shm0-dev libvpx-dev \
liblua5.2-dev libxkbcommon-dev libxcb-xfixes0-dev equivs libavutil-dev \
libavcodec-dev libswscale-dev python3-dev cython3 g++ nasm yasm git \
libavfilter-dev libxmu-dev libxcb1-dev libdbus-1-dev libx11-dev \
libxinerama-dev libxrandr-dev intltool libtool libwayland-dev \
wayland-protocols devscripts libass-dev libx264-dev libxss-dev \
libglib2.0-dev libpango1.0-dev binutils libxdg-basedir-dev libnotify-dev \
libc++-dev libplacebo-dev libx265-dev ninja-build meson autotools-dev \
autoconf automake make build-essential pkg-config desktop-file-utils zsync
chmod a+x ./mpv-AppImage.sh && ./mpv-AppImage.sh
mkdir dist
mv *.AppImage* dist/
- name: Check version file
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload artifact
uses: actions/[email protected]
with:
name: AppImage
path: 'dist'
- name: Upload version file
uses: actions/[email protected]
with:
name: version
path: ~/version
release:
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: AppImage
- uses: actions/[email protected]
with:
name: version
- name: Read version
run: |
cat version
export VERSION="$(<version)"
echo "APP_VERSION=${VERSION}" >> "${GITHUB_ENV}"
#Version Release
- name: Del Previous Release
run: |
gh release delete "${APP_VERSION}" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
- name: Continuous Releaser
uses: softprops/action-gh-release@v2
with:
name: "mpv AppImage ${{ env.APP_VERSION }}"
tag_name: "${{ env.APP_VERSION}}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: true
files: |
*.AppImage*
continue-on-error: false
#Snapshot Release
- name: Get Date
run: |
SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
echo SNAPSHOT_TAG="${SNAPSHOT_TAG}" >> "${GITHUB_ENV}"
continue-on-error: false
- name: Snapshot Releaser
uses: softprops/action-gh-release@v2
with:
name: "Snapshot ${{ env.APP_VERSION }}"
tag_name: "${{ env.SNAPSHOT_TAG }}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: false
files: |
*.AppImage*
continue-on-error: false