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