mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 23:35:32 +02:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2f67dc9c9 | ||
|
|
45ac6d823c | ||
|
|
8317e3367a | ||
|
|
73a2b1d724 | ||
|
|
1166e34804 | ||
|
|
8b007be08a | ||
|
|
d966cd9e23 | ||
|
|
f59756da40 | ||
|
|
135ae0e244 | ||
|
|
0a8825e840 | ||
|
|
162d5eb2bf | ||
|
|
a39ec74bb3 | ||
|
|
759d81669c | ||
|
|
9d0897eb43 | ||
|
|
53fb0e3d31 | ||
|
|
28cb3eaa99 | ||
|
|
f24c22f462 | ||
|
|
5403db806d | ||
|
|
e131333c80 | ||
|
|
d724e17ec0 | ||
|
|
c869bb0953 |
10
.github/workflows/build-deb.yml
vendored
10
.github/workflows/build-deb.yml
vendored
@@ -85,16 +85,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
||||||
|
|
||||||
- name: Upload DEB package
|
- name: Upload DEB package as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: davinci-video-converter-${{ matrix.arch }}.deb
|
name: davinci-video-converter-${{ matrix.arch }}.deb
|
||||||
path: davinci-video-converter_*.deb
|
path: davinci-video-converter_*.deb
|
||||||
|
|
||||||
- name: Upload to Release
|
|
||||||
if: github.event_name == 'release'
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: davinci-video-converter_*.deb
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
9
.github/workflows/ci-cd.yml
vendored
9
.github/workflows/ci-cd.yml
vendored
@@ -153,9 +153,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
||||||
|
|
||||||
- name: Upload to Release
|
- name: Upload DEB package as artifact
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
files: davinci-video-converter_*.deb
|
name: davinci-video-converter-${{ matrix.arch }}.deb
|
||||||
env:
|
path: davinci-video-converter_*.deb
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
@@ -1,16 +1,17 @@
|
|||||||
name: Release Pipeline
|
name: Release Pipeline
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published, created]
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release Build
|
name: Release Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [amd64, arm64]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -21,17 +22,9 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential ffmpeg devscripts debhelper
|
sudo apt-get install -y build-essential ffmpeg devscripts debhelper
|
||||||
|
|
||||||
- name: Build
|
- name: Build binary
|
||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: Create test input file
|
|
||||||
run: |
|
|
||||||
mkdir -p tests
|
|
||||||
ffmpeg -f lavfi -i testsrc=duration=1:size=128x72:rate=1 -c:v libx264 -t 1 tests/input.mp4 -y 2>/dev/null || touch tests/input.mp4
|
|
||||||
|
|
||||||
- name: Run Tests
|
|
||||||
run: make test
|
|
||||||
|
|
||||||
- name: Create DEB directory structure
|
- name: Create DEB directory structure
|
||||||
run: |
|
run: |
|
||||||
mkdir -p debian/DEBIAN
|
mkdir -p debian/DEBIAN
|
||||||
@@ -46,7 +39,7 @@ jobs:
|
|||||||
Version: $VERSION
|
Version: $VERSION
|
||||||
Section: video
|
Section: video
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: ${{ matrix.arch }}
|
Architecture: amd64
|
||||||
Maintainer: Developer <developer@example.com>
|
Maintainer: Developer <developer@example.com>
|
||||||
Description: DaVinci Video Converter
|
Description: DaVinci Video Converter
|
||||||
A command-line video conversion tool optimized for DaVinci Resolve workflows.
|
A command-line video conversion tool optimized for DaVinci Resolve workflows.
|
||||||
@@ -69,13 +62,22 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
chmod 755 debian/DEBIAN/postinst
|
chmod 755 debian/DEBIAN/postinst
|
||||||
|
|
||||||
- name: Build DEB package
|
- name: Build AMD64 DEB package
|
||||||
run: |
|
run: |
|
||||||
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_amd64.deb
|
||||||
|
|
||||||
- name: Upload to Release
|
- name: Build ARM64 DEB package
|
||||||
|
run: |
|
||||||
|
sed -i 's/Architecture: amd64/Architecture: arm64/' debian/DEBIAN/control
|
||||||
|
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_arm64.deb
|
||||||
|
|
||||||
|
- name: Upload DEB packages as artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: davinci-video-converter-debs
|
||||||
|
path: davinci-video-converter_*.deb
|
||||||
|
|
||||||
|
- name: Upload DEB packages to GitHub Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: davinci-video-converter_*.deb
|
files: davinci-video-converter_*.deb
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user