-
Notifications
You must be signed in to change notification settings - Fork 125
43 lines (35 loc) · 1.33 KB
/
test-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
name: Build GO PDF
on:
schedule:
- cron: "1 1 * * *"
workflow_dispatch: {}
jobs:
go-pdf-make:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git longpaths (Windows)
if: matrix.os == 'windows-latest'
run: |
git config --system core.longpaths true
- name: Install mlc-scripts
run: |
pip install mlc-scripts
mlc pull repo gateoverflow@go-pdfs
- name: Test Build (Windows)
if: matrix.os == 'windows-latest'
run: |
# curl -L -o book_filter6.html https://github.com/GATEOverflow/GO-PDFs/releases/download/ugcnet/book_filter6.html
Invoke-WebRequest -Uri 'https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.6/wkhtmltox-0.12.6-1.msvc2015-win64.exe' -OutFile 'wkhtmltox-0.12.6-1.msvc2015-win64.exe'
mlcr make,go,pdf,_go-cse,_vol1 --input=book_filter6.html -v --quiet
- name: Test Build (Linux/macOS)
if: matrix.os != 'windows-latest'
run: |
wget https://github.com/GATEOverflow/GO-PDFs/releases/download/ugcnet/book_filter6.html
mlcr make,go,pdf,_go-cse,_vol1 --input=book_filter6.html -v --quiet