forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add linux and macos sw builds to github actions.
- Loading branch information
Showing
4 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters