mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 23:35:32 +02:00
Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
665ba3a5fd | ||
|
|
7b9957dd2c | ||
|
|
0d2740db94 | ||
|
|
45e68ca7cb | ||
|
|
9fc28abc91 | ||
|
|
f1021e4391 | ||
|
|
a2f67dc9c9 | ||
|
|
45ac6d823c | ||
|
|
8317e3367a | ||
|
|
73a2b1d724 | ||
|
|
1166e34804 | ||
|
|
8b007be08a | ||
|
|
d966cd9e23 | ||
|
|
f59756da40 | ||
|
|
135ae0e244 | ||
|
|
0a8825e840 | ||
|
|
162d5eb2bf | ||
|
|
a39ec74bb3 | ||
|
|
759d81669c | ||
|
|
9d0897eb43 | ||
|
|
53fb0e3d31 | ||
|
|
28cb3eaa99 | ||
|
|
f24c22f462 | ||
|
|
5403db806d | ||
|
|
e131333c80 | ||
|
|
d724e17ec0 | ||
|
|
c869bb0953 |
13
.github/workflows/build-deb.yml
vendored
13
.github/workflows/build-deb.yml
vendored
@@ -7,6 +7,9 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build-deb:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -85,16 +88,8 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
with:
|
||||
name: davinci-video-converter-${{ matrix.arch }}.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 }}
|
||||
|
||||
12
.github/workflows/ci-cd.yml
vendored
12
.github/workflows/ci-cd.yml
vendored
@@ -8,6 +8,9 @@ on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
PROJECT_NAME: davinci-video-converter
|
||||
|
||||
@@ -153,9 +156,8 @@ jobs:
|
||||
run: |
|
||||
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
|
||||
|
||||
- name: Upload to Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
- name: Upload DEB package as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
files: davinci-video-converter_*.deb
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: davinci-video-converter-${{ matrix.arch }}.deb
|
||||
path: davinci-video-converter_*.deb
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
@@ -1,16 +1,17 @@
|
||||
name: Release Pipeline
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published, created]
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release Build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [amd64, arm64]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -21,17 +22,9 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential ffmpeg devscripts debhelper
|
||||
|
||||
- name: Build
|
||||
- name: Build binary
|
||||
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
|
||||
run: |
|
||||
mkdir -p debian/DEBIAN
|
||||
@@ -46,7 +39,7 @@ jobs:
|
||||
Version: $VERSION
|
||||
Section: video
|
||||
Priority: optional
|
||||
Architecture: ${{ matrix.arch }}
|
||||
Architecture: amd64
|
||||
Maintainer: Developer <developer@example.com>
|
||||
Description: DaVinci Video Converter
|
||||
A command-line video conversion tool optimized for DaVinci Resolve workflows.
|
||||
@@ -69,13 +62,22 @@ jobs:
|
||||
EOF
|
||||
chmod 755 debian/DEBIAN/postinst
|
||||
|
||||
- name: Build DEB package
|
||||
- name: Build AMD64 DEB package
|
||||
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
|
||||
with:
|
||||
files: davinci-video-converter_*.deb
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
25
.github/workflows/security.yml
vendored
25
.github/workflows/security.yml
vendored
@@ -9,33 +9,10 @@ on:
|
||||
# Run security scans weekly on Sunday at 2 AM UTC
|
||||
- cron: '0 2 * * 0'
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
name: CodeQL Analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: cpp
|
||||
queries: security-extended,security-and-quality
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
with:
|
||||
category: "/language:cpp"
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
name: Dependency Review
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -44,4 +44,4 @@ tests/*.mov
|
||||
tests/*.mkv
|
||||
tests/test_parser
|
||||
tests/test_validator
|
||||
tests/test_converter
|
||||
tests/test_converter# Contributors
|
||||
|
||||
Reference in New Issue
Block a user