mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-22 22:47:50 +08:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: linux
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Download SW
|
|
shell: cmake -P {0}
|
|
run: |
|
|
if (WIN32)
|
|
file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip)
|
|
elseif (APPLE)
|
|
file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip)
|
|
else()
|
|
file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip)
|
|
endif()
|
|
|
|
- name: Unpack SW
|
|
run: |
|
|
cmake -E tar xvf sw.zip
|
|
chmod 755 sw
|
|
|
|
- name: gcc
|
|
run: |
|
|
sudo add-apt-repository ppa:jonathonf/gcc-9.0
|
|
sudo apt-get update
|
|
sudo apt-get install g++-9
|
|
|
|
- name: llvm
|
|
run: |
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
|
|
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main' -y
|
|
sudo apt-get update -q
|
|
sudo apt-get install -y clang-9 lld-9 libc++-9-dev libc++abi-9-dev clang-tools-9
|
|
|
|
- name: build
|
|
run: ./sw -static -shared -config d,r build
|