Skip to content
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

add ffprobe-static and adapt ffmpeg-static repository to support both packages #113

Closed
Closed
217 changes: 173 additions & 44 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@ jobs:
- name: Compress Binaries
run: |
set -e
set -o pipefail
cat bin/darwin-x64 | gzip --best >bin/darwin-x64.gz
cat bin/darwin-arm64 | gzip --best >bin/darwin-arm64.gz
# cat bin/freebsd-x64 | gzip --best >bin/freebsd-x64.gz
cat bin/linux-arm | gzip --best >bin/linux-arm.gz
cat bin/linux-arm64 | gzip --best >bin/linux-arm64.gz
cat bin/linux-ia32 | gzip --best >bin/linux-ia32.gz
cat bin/linux-x64 | gzip --best >bin/linux-x64.gz
cat bin/win32-ia32 | gzip --best >bin/win32-ia32.gz
cat bin/win32-x64 | gzip --best >bin/win32-x64.gz
for file in bin/{ffmpeg,ffprobe}-{darwin,linux,win32,freebsd}-{arm64,arm,x64,ia32}; do test -f $file && gzip -k --best "$file"; done
ls -l bin
shell: bash

Expand All @@ -45,16 +36,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/darwin-x64
asset_name: darwin-x64
asset_path: bin/ffmpeg-darwin-x64
asset_name: ffmpeg-darwin-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/darwin-x64.gz
asset_name: darwin-x64.gz
asset_path: bin/ffmpeg-darwin-x64.gz
asset_name: ffmpeg-darwin-x64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -71,16 +62,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/darwin-arm64
asset_name: darwin-arm64
asset_path: bin/ffmpeg-darwin-arm64
asset_name: ffmpeg-darwin-arm64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/darwin-arm64.gz
asset_name: darwin-arm64.gz
asset_path: bin/ffmpeg-darwin-arm64.gz
asset_name: ffmpeg-darwin-arm64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand Down Expand Up @@ -114,16 +105,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-arm
asset_name: linux-arm
asset_path: bin/ffmpeg-linux-arm
asset_name: ffmpeg-linux-arm
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-arm.gz
asset_name: linux-arm.gz
asset_path: bin/ffmpeg-linux-arm.gz
asset_name: ffmpeg-linux-arm.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -149,16 +140,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-arm64
asset_name: linux-arm64
asset_path: bin/ffmpeg-linux-arm64
asset_name: ffmpeg-linux-arm64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-arm64.gz
asset_name: linux-arm64.gz
asset_path: bin/ffmpeg-linux-arm64.gz
asset_name: ffmpeg-linux-arm64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -184,16 +175,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-ia32
asset_name: linux-ia32
asset_path: bin/ffmpeg-linux-ia32
asset_name: ffmpeg-linux-ia32
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-ia32.gz
asset_name: linux-ia32.gz
asset_path: bin/ffmpeg-linux-ia32.gz
asset_name: ffmpeg-linux-ia32.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -219,16 +210,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-x64
asset_name: linux-x64
asset_path: bin/ffmpeg-linux-x64
asset_name: ffmpeg-linux-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-x64.gz
asset_name: linux-x64.gz
asset_path: bin/ffmpeg-linux-x64.gz
asset_name: ffmpeg-linux-x64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -245,25 +236,25 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux-x64.LICENSE
asset_name: linux-x64.LICENSE
asset_path: bin/ffmpeg-linux-x64.LICENSE
asset_name: ffmpeg-linux-x64.LICENSE
asset_content_type: text/plain

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32-ia32
asset_name: win32-ia32
asset_path: bin/ffmpeg-win32-ia32
asset_name: ffmpeg-win32-ia32
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32-ia32.gz
asset_name: win32-ia32.gz
asset_path: bin/ffmpeg-win32-ia32.gz
asset_name: ffmpeg-win32-ia32.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -280,16 +271,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32-x64
asset_name: win32-x64
asset_path: bin/ffmpeg-win32-x64
asset_name: ffmpeg-win32-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32-x64.gz
asset_name: win32-x64.gz
asset_path: bin/ffmpeg-win32-x64.gz
asset_name: ffmpeg-win32-x64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
Expand All @@ -300,3 +291,141 @@ jobs:
asset_path: bin/win32-x64.LICENSE
asset_name: win32-x64.LICENSE
asset_content_type: text/plain

#ffprobe releases
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-darwin-x64
asset_name: ffprobe-darwin-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-darwin-x64.gz
asset_name: ffprobe-darwin-x64.gz
asset_content_type: application/octet-stream

# No provided ARM64 for ffprobe yet
#- uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: bin/ffprobe-darwin-arm64
# asset_name: ffprobe-darwin-arm64
# asset_content_type: application/octet-stream
#- uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: bin/ffprobe-darwin-arm64.gz
# asset_name: ffprobe-darwin-arm64.gz
# asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-arm
asset_name: ffprobe-linux-arm
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-arm.gz
asset_name: ffprobe-linux-arm.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-arm64
asset_name: ffprobe-linux-arm64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-arm64.gz
asset_name: ffprobe-linux-arm64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-ia32
asset_name: ffprobe-linux-ia32
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-ia32.gz
asset_name: ffprobe-linux-ia32.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-x64
asset_name: ffprobe-linux-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-linux-x64.gz
asset_name: ffprobe-linux-x64.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-win32-ia32
asset_name: ffprobe-win32-ia32
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-win32-ia32.gz
asset_name: ffprobe-win32-ia32.gz
asset_content_type: application/octet-stream

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-win32-x64
asset_name: ffprobe-win32-x64
asset_content_type: application/octet-stream
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/ffprobe-win32-x64.gz
asset_name: ffprobe-win32-x64.gz
asset_content_type: application/octet-stream
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ npm-debug.log
build/*
!build/index.sh

bin/*

/ffmpeg
/ffmpeg.exe
/ffmpeg.README
/ffmpeg.LICENSE
bin/*
Loading