Repository navigation
151 lines (148 loc) · 4.15 KB
/
Copy pathdeploy.yml
File metadata and controls
151 lines (148 loc) · 4.15 KB
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
---
"on":
push:
paths-ignore:
- "**.md"
- doc/*
pull_request:
paths-ignore:
- "**.md"
- doc/*
workflow_dispatch:
# Prevent concurrent auto-commits
concurrency:
group: auto-commit-linux-x86_64
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- macos-latest
# - windows-latest
runs-on: ${{matrix.runs-on}}
steps:
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
- uses: luarocks/gh-actions-lua@v14
with:
luaVersion: "5.3"
- uses: lumen-oss/gh-actions-lux@v1
- name: Install Dependencies
if: runner.os == 'macOS'
run: |
brew install autoconf automake libtool
echo "PKG_CONFIG_PATH=$(brew --prefix readline)/lib/pkgconfig:\
$PKG_CONFIG_PATH" >> "$GITHUB_ENV"
- name: Install Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get -y update
sudo apt-get -y install libreadline-dev
# https://github.com/lumen-oss/lux/issues/2198
- uses: luarocks/gh-actions-luarocks@v6
- name: Pack
env:
HISTORY_LIBDIR: /usr/lib/x86_64-linux-gnu
run: |
luarocks install luahbtex
luarocks pack luahbtex
lx --lua-version=5.3 pack bibtex
lx --lua-version=5.3 pack makeindex
lx --lua-version=5.3 pack luaprompt
lx --lua-version=5.3 pack luafilesystem
lx --lua-version=5.3 pack lua-cjson
rustup component add rust-src
lx --lua-version=5.3 pack minijinja-lua
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.runs-on }}
path: |
*.rock
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
ref: gh-pages
- name: Clean old rocks
run: |
rm -f ./*.rock
- uses: actions/download-artifact@v4
with:
pattern: artifact-*
merge-multiple: true
- uses: luarocks/gh-actions-lua@v14
with:
luaVersion: "5.3"
- uses: luarocks/gh-actions-luarocks@v6
- name: Install Dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install liblua5.3-dev rename libreadline-dev
# https://github.com/luarocks/luarocks/issues/1817
echo local_by_default = true >>\
~/work/texrocks/texrocks/.luarocks/etc/luarocks/config-5.3.lua
luarocks config variables.ZIP rpzip
for rock in ./*.linux-x86_64.rock; do
luarocks install "$rock"
done
- uses: ustctug/texrocks@main
env:
TEXMFDOTDIR: .;~/.luarocks/lib/luarocks/rocks-5.3//
CXXFLAGS: -I/home/runner/work/texrocks/texrocks/.lua/include
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
target: >
rpzip
texdef
luatex
luatexinfo
lualatex
texdoc
light-latex-make
markdown2tex
citation-style-language
cm-unicode
fourier
mpfonts
multirow
ulem
jknappen
ncctools
yhmath
bigfoot
changepage
graphics-pln
standalone
hologo
luadraw
beamerswitch
sjtubeamer-contrib
ctex
babel-base
hypdoc
ydoc
algorithms
subfig
cite
sttools
ieeetran
preprint
booktabs
makecell
epstopdf-pkg
listingsutf8
fontawesome5
hyperxmp
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: gh-pages
commit_message: 'chore: update build artifacts'
file_pattern: index.html manifest* *.rock
commit_options: --amend --no-edit
push_options: --force