Build GO PDF #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |