forked from brltty/brltty
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (75 loc) · 2.19 KB
/
build_brltty_windows.yml
File metadata and controls
87 lines (75 loc) · 2.19 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: build BRLTTY for Windows
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build_brltty:
runs-on: windows-2025
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
architecture: x64
- name: Install setuptools and cython
shell: cmd
run: |
python -m pip install --upgrade pip
pip install setuptools cython
- name: Set up MSYS environment
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
autoconf
automake
make
awk
bison
git
groff
m4
patch
pacboy: >-
tcl:p
pdcurses:p
icu:p
libiconv:p
toolchain:p
libusb:p
- name: Apply patches
run: patch -p0 <"Windows/affinity.patch"
- name: Configure build
run: |
export PATH="$(cygpath -u "$pythonLocation")/scripts:$(cygpath -u "$pythonLocation"):$PATH"
./autogen
./cfg-windows --prefix=/ --enable-relocatable-install --with-usb-package=winusb
- name: Build BRLTTY
run: |
make
make -C Documents
- name: Install BRLTTY
run: |
mkdir -p install/{bin,etc,lib,python}
make install install-messages JAVA_JAR_DIR=/lib JAVA_JNI_DIR=/lib PYTHON_PREFIX="Python" INSTALL_ROOT="./install"
cp Documents/brltty.conf install/etc/
cp Programs/*.exe Programs/*.dll install/bin
cp Bindings/Python/dist/* install/python/
cp LICENSE-LGPL install/LICENSE-LGPL.txt
cp Documents/*.csv install/etc/
cp Windows/*.bat install/
cp $MINGW_PREFIX/bin/{libgcc_s_seh-1.dll,libiconv-2.dll,libpdcurses*.dll,libintl-8.dll} install/bin/
cd install/
rm -f "bin/brltty-config"
rm -f "etc/brlapi.key"
- uses: actions/upload-artifact@v4
with:
name: brltty
path: install