Add GitHub Action for Linux

Adds a GitHub Action that will build CCExtractor for Linux (Ubuntu in this case) using the shell script and the autoconf option.
This commit is contained in:
Willem 2020-01-18 20:05:42 +01:00 committed by GitHub
parent e8cb55e739
commit 676be1f193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

54
.github/workflows/build_linux.yml vendored Normal file
View File

@ -0,0 +1,54 @@
name: Build CCExtractor on Linux
on:
push:
branches: master
paths:
- '.github/workflows/build_linux.yml'
- '**.c'
- '**.h'
- '**Makefile**'
- 'linux/**'
- 'package_creators/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/build_linux.yml'
- '**.c'
- '**.h'
- '**Makefile**'
- 'linux/**'
- 'package_creators/**'
jobs:
build_shell:
runs-on: ubuntu-latest
steps:
- name: Install tesseract
run: sudo apt-get install libtesseract-dev
- uses: actions/checkout@v1
- name: build
run: ./build
working-directory: ./linux
- name: Prepare artifacts
run: mkdir ./linux/artifacts
- name: Copy release artifact
run: cp ./linux/ccextractor ./linux/artifacts/
- uses: actions/upload-artifact@v1
with:
name: CCExtractor Linux build
path: ./linux/artifacts
build_autoconf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: run autogen
run: ./autogen.sh
working-directory: ./linux
- name: configure
run: ./configure
working-directory: ./linux
- name: make
run: make
working-directory: ./linux