From 676be1f193d87d5045a5c2c7f3dea0b5fafc12d6 Mon Sep 17 00:00:00 2001 From: Willem Date: Sat, 18 Jan 2020 20:05:42 +0100 Subject: [PATCH] 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. --- .github/workflows/build_linux.yml | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/build_linux.yml diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml new file mode 100644 index 00000000..a4b4e480 --- /dev/null +++ b/.github/workflows/build_linux.yml @@ -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