forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 445
46 lines (41 loc) · 1.16 KB
/
installer-for-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# GitHub actions - Create Tesseract installer for Windows
name: Cross build for Windows
on:
push:
branches:
- 'windows'
# Trigger workflow in GitHub web frontend or from API.
workflow_dispatch:
inputs:
targets:
description: 'Target operating system'
required: true
default: 'Windows (64 bit)'
type: choice
options:
- 'Windows (32 bit)'
- 'Windows (64 bit)'
jobs:
build32:
# Disable 32 bit builds.
if: github.repository == '_UB-Mannheim/tesseract'
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- name: Build Tesseract installer (32 bit)
run: .github/workflows/build.sh i686
- uses: actions/upload-artifact@v4
with:
name: Tesseract Installer for Windows (32 bit)
path: dist
build64:
if: github.repository == 'UB-Mannheim/tesseract'
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Build Tesseract installer (64 bit)
run: .github/workflows/build.sh x86_64
- uses: actions/upload-artifact@v4
with:
name: Tesseract Installer for Windows (64 bit)
path: dist