mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 15:03:45 +08:00
[ci] Merge three configs into one.
This commit is contained in:
parent
ef4f99a994
commit
a6c8d4c692
32
.github/workflows/linux.yml
vendored
32
.github/workflows/linux.yml
vendored
@ -1,32 +0,0 @@
|
||||
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: build
|
||||
run: ./sw -static -shared -config d,r build
|
34
.github/workflows/macos.yml
vendored
34
.github/workflows/macos.yml
vendored
@ -1,34 +0,0 @@
|
||||
name: macos
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macOS-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
|
||||
|
||||
- name: chmod
|
||||
run: chmod 755 sw
|
||||
shell: sh
|
||||
|
||||
- name: build
|
||||
run: ./sw -static -shared -config d,r build
|
@ -1,14 +1,13 @@
|
||||
name: windows
|
||||
name: sw
|
||||
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
#os: [windows-latest, ubuntu-latest, macOS-latest]
|
||||
os: [windows-latest, ubuntu-latest, macOS-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
@ -23,7 +22,6 @@ jobs:
|
||||
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
|
||||
|
||||
@ -32,4 +30,9 @@ jobs:
|
||||
shell: sh
|
||||
|
||||
- name: build
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: ./sw -static -shared -platform x86,x64 -config d,r build
|
||||
|
||||
- name: build
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: ./sw -static -shared -config d,r build
|
Loading…
Reference in New Issue
Block a user