-
Notifications
You must be signed in to change notification settings - Fork 100
29 lines (28 loc) · 1.08 KB
/
build-and-test.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
name: Build Spec Website
on:
pull_request:
branches:
- master
jobs:
build:
name: Build spec and website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
cache: 'pip'
- run: export PATH=$PATH:$HOME/.local/bin
- run: export WAMP_BUILD_ID="$(date -u "+%Y%m%d")-$(git rev-parse --short ${GITHUB_SHA})"
- run: sudo apt-get update
- run: sudo apt update
- run: sudo apt install -y xml2rfc libxml2-utils libenchant-2-2 enscript weasyprint libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 python3-cffi python3-brotli
- run: pip install -r requirements.txt
- run: pip install 'weasyprint>=53.0'
- run: wget https://github.com/mmarkdown/mmark/releases/download/v2.2.25/mmark_2.2.25_linux_amd64.tgz
- run: tar xvzf mmark_2.2.25_linux_amd64.tgz
- run: rm -f ./mmark*.tgz
- run: sudo cp ./mmark /usr/local/bin/
- run: make build
- run: find dist/ -name "wamp_*latest_ietf.*" -exec openssl sha256 {} \;