mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-23 06:57:50 +08:00
36 lines
878 B
YAML
36 lines
878 B
YAML
name: windows
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
#os: [windows-latest, ubuntu-latest, 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 -platform x86,x64 -config d,r build
|