mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 15:25:33 +02:00
33 lines
648 B
YAML
33 lines
648 B
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Dependencies
|
|
run: sudo apt-get update && sudo apt-get install -y build-essential ffmpeg
|
|
|
|
- name: Build
|
|
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 Unit Tests
|
|
run: make test
|