-
Notifications
You must be signed in to change notification settings - Fork 90
97 lines (77 loc) · 2.06 KB
/
build.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
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
88
89
90
91
92
93
94
95
96
97
name: Build foma
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: dependencies
run: |
sudo apt-get -qy update
sudo apt-get -qfy install --no-install-recommends cmake
- name: build
run: cd foma && cmake . && make -j
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-linux
path: |
foma/foma
foma/flookup
foma/cgflookup
foma/libfoma.so.*
foma/README*
foma/CHANGELOG
foma/COPYING
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: cmake gcc bison flex make zlib-devel libreadline-devel ncurses-devel
- name: Compile Foma
run: cd foma && cmake . && make -j
- name: Copy MINGW64 DLLs to build directory
run: cp /usr/bin/{msys-2.0.dll,msys-ncursesw6.dll,msys-readline8.dll,msys-z.dll} foma
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-windows
path: |
foma/foma.exe
foma/flookup.exe
foma/cgflookup.exe
foma/*.dll
foma/README*
foma/CHANGELOG
foma/COPYING
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Compile Foma
run: brew install bison cmake && export PATH="$(brew --prefix bison)/bin:$PATH" && cd foma && cmake . && make -j
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist-macos
path: |
foma/foma
foma/cgflookup
foma/flookup
foma/libfoma.a
foma/libfoma.*.dylib
foma/README*
foma/CHANGELOG
foma/COPYING