tesseract/.github/workflows/sw.yml

24 lines
523 B
YAML
Raw Normal View History

2020-03-14 00:37:22 +08:00
name: sw
2020-01-06 08:18:47 +08:00
2020-03-14 00:37:22 +08:00
on: [push, pull_request]
2020-01-06 08:18:47 +08:00
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
2020-03-30 06:53:41 +08:00
fail-fast: false
2020-01-06 08:18:47 +08:00
matrix:
2020-09-10 07:05:29 +08:00
os: [windows-latest, ubuntu-20.04, macOS-latest]
2020-01-06 08:18:47 +08:00
steps:
- uses: actions/checkout@v1
2020-03-14 04:45:38 +08:00
- uses: egorpugin/sw-action@master
2020-01-06 08:18:47 +08:00
- name: build
2020-03-14 00:37:22 +08:00
if: matrix.os == 'windows-latest'
2020-01-06 19:08:29 +08:00
run: ./sw -static -shared -platform x86,x64 -config d,r build
2020-03-14 00:37:22 +08:00
- name: build
if: matrix.os != 'windows-latest'
run: ./sw -static -shared -config d,r build -Dwith-tests=1