forked from lwg/issues
-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (33 loc) · 1.01 KB
/
check-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
# A workflow to check generating the HTML lists works.
# The pages generated by this will have incorrect "Last modified" dates
# for the issues, because there is no meta-date/dates file used here.
# That's OK, because this is just a quick check to ensure that the XML
# is well-formed and the lists can be generated, suitable for checking
# pull requests are OK to merge.
name: Check HTML generation
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Compile binary programs
run: make pgms
- name: Check for carriage returns
run: |
if grep -IUrl --exclude-dir=.git . -e $'\r'; then
echo "Sorry, carriage returns are not allowed in the repo."
exit 1
fi
- name: XML validation
run: |
sudo apt-get install -y libxml2-utils
bin/lint.sh
- name: Generate HTML lists
run: make lists