-
Notifications
You must be signed in to change notification settings - Fork 76
170 lines (144 loc) · 5.75 KB
/
boxes.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#
# boxes - Command line filter to draw/remove ASCII boxes around text
# Copyright (c) 1999-2023 Thomas Jensen and the boxes contributors
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
# License, version 3, as published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#____________________________________________________________________________________________________________________
#====================================================================================================================
name: build
on: [push, pull_request, workflow_dispatch]
env:
TERM: xterm-color
jobs:
# build-linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: add-packages
# run: |
# sudo apt-get update -y
# sudo apt-get install -y git flex bison libunistring-dev libpcre2-dev libncurses-dev diffutils vim-common lcov libcmocka-dev
# - name: make cov
# run: make cov
# - name: Run white-box tests
# run: make utest
# - name: Run sunny-day tests
# run: make covtest-sunny
# - name: Run black-box tests
# run: make covtest
# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: out/lcov-total.info
# format: lcov
# flag-name: run-linux
# parallel: true
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: add-packages
uses: msys2/setup-msys2@v2
with:
update: true
msystem: MINGW64
install: >-
base-devel
bison
diffutils
dos2unix
flex
git
make
unzip
vim
zip
pacboy: >-
gcc:p
libiconv:p
libunistring:p
ncurses:p
pcre2:p
cmocka:p
- name: Provide win32 prerequisites
run: |
echo gcc Include path:
echo -------------------------------------------------------------------------------------------
echo | gcc -E -Wp,-v -
echo -------------------------------------------------------------------------------------------
pacboy origin xxd.exe
zip -r usr-include.zip /usr/include
ls -lF / > ls-root.txt
cat ls-root.txt
find /bin /etc /home /opt -print > files1.txt
find /usr -print > files2.txt
find /clang32 /clang64 /mingw32 /mingw64 /ucrt64 -print > files3.txt
- name: make win32.ci
run: make win32.ci
- name: TEMP upload artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: files
path: |
ls-root.txt
files*.txt
usr-include.zip
out
retention-days: 2
- name: Run white-box tests
run: make win32.utest
- name: Run sunny-day tests
run: make test-sunny
- name: Run black-box tests
run: make test
# build-macos:
# runs-on: macos-latest
# env:
# BX_LEX: /usr/local/opt/flex/bin/flex
# BX_YACC: /usr/local/opt/bison/bin/bison
# steps:
# - uses: actions/checkout@v4
# # We need to use GNU grep, sed, and xargs on macOS
# - name: add-packages
# run: |
# brew install flex bison diffutils lcov cmocka grep gnu-sed findutils
# echo '/usr/local/opt/grep/libexec/gnubin' >> $GITHUB_PATH
# echo '/usr/local/opt/gnu-sed/libexec/gnubin' >> $GITHUB_PATH
# echo '/usr/local/opt/findutils/libexec/gnubin' >> $GITHUB_PATH
# - name: make cov
# run: make cov
# - name: Run white-box tests
# run: make utest
# - name: Run sunny-day tests
# run: make covtest-sunny
# - name: Run black-box tests
# run: make covtest
# - name: Coveralls
# uses: coverallsapp/github-action@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: out/lcov-total.info
# format: lcov
# flag-name: run-macos
# parallel: true
# finish:
# needs: [build-linux, build-macos]
# if: ${{ always() }}
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@v2
# with:
# parallel-finished: true
# carryforward: "run-linux,run-macos"