mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-10-07 05:58:38 +00:00
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
114 lines
3.2 KiB
YAML
114 lines
3.2 KiB
YAML
name: Build CCExtractor on Linux
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/build_linux.yml'
|
|
- '**.c'
|
|
- '**.h'
|
|
- '**Makefile**'
|
|
- 'linux/**'
|
|
- 'package_creators/**'
|
|
- 'src/rust/**'
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- '.github/workflows/build_linux.yml'
|
|
- '**.c'
|
|
- '**.h'
|
|
- '**Makefile**'
|
|
- 'linux/**'
|
|
- 'package_creators/**'
|
|
- 'src/rust/**'
|
|
jobs:
|
|
build_shell:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt-get install libgpac-dev libtesseract-dev
|
|
- uses: actions/checkout@v4
|
|
- name: build
|
|
run: ./build
|
|
working-directory: ./linux
|
|
- name: Display version information
|
|
run: ./ccextractor --version
|
|
working-directory: ./linux
|
|
- name: Prepare artifacts
|
|
run: mkdir ./linux/artifacts
|
|
- name: Copy release artifact
|
|
run: cp ./linux/ccextractor ./linux/artifacts/
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CCExtractor Linux build
|
|
path: ./linux/artifacts
|
|
build_autoconf:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt-get install libgpac-dev
|
|
- uses: actions/checkout@v4
|
|
- name: run autogen
|
|
run: ./autogen.sh
|
|
working-directory: ./linux
|
|
- name: configure
|
|
run: ./configure --enable-debug
|
|
working-directory: ./linux
|
|
- name: make
|
|
run: make
|
|
working-directory: ./linux
|
|
- name: Display version information
|
|
run: ./ccextractor --version
|
|
working-directory: ./linux
|
|
cmake:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt-get install libgpac-dev
|
|
- uses: actions/checkout@v4
|
|
- name: cmake
|
|
run: mkdir build && cd build && cmake ../src
|
|
- name: build
|
|
run: make -j$(nproc)
|
|
working-directory: build
|
|
- name: Display version information
|
|
run: ./build/ccextractor --version
|
|
cmake_ocr_hardsubx:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt install libgpac-dev libtesseract-dev libavformat-dev libavdevice-dev libswscale-dev yasm
|
|
- name: cmake
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake -DWITH_OCR=ON -DWITH_HARDSUBX=ON ../src
|
|
- name: build
|
|
run: |
|
|
make -j$(nproc)
|
|
working-directory: build
|
|
- name: Display version information
|
|
run: ./build/ccextractor --version
|
|
build_rust:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt-get install libgpac-dev
|
|
- uses: actions/checkout@v4
|
|
- name: cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
src/rust/.cargo/registry
|
|
src/rust/.cargo/git
|
|
src/rust/target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: ${{ runner.os }}-cargo-
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: build
|
|
run: cargo build
|
|
working-directory: ./src/rust
|