@@ -16,7 +16,52 @@ concurrency:
1616 cancel-in-progress : true
1717
1818jobs :
19+ build :
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ runs-on :
24+ - macos-latest
25+ # - windows-latest
26+ runs-on : ${{matrix.runs-on}}
27+ steps :
28+ - name : Install MSVC Compiler Toolchain
29+ uses : ilammy/msvc-dev-cmd@v1
30+ - uses : xmake-io/github-action-setup-xmake@v1
31+ - uses : leafo/gh-actions-lua@v12
32+ with :
33+ luaVersion : " 5.1"
34+ - uses : luarocks/gh-actions-luarocks@v6
35+ - name : Install Dependencies
36+ if : runner.os == 'macOS'
37+ run : |
38+ brew install librime
39+ - name : Install Dependencies
40+ run : |
41+ luarocks config variables.ZIP rpzip
42+ luarocks install rpzip
43+ luarocks install luahbtex \
44+ --server=https://ustctug.github.io/texrocks
45+ luarocks install nvim-textmate \
46+ --server=https://ustctug.github.io/texrocks
47+ luarocks install ltreesitter \
48+ --server=https://ustctug.github.io/texrocks
49+ luarocks install lua-template \
50+ --server=https://ustctug.github.io/texrocks
51+ luarocks pack lua-zlib
52+ luarocks pack luafilesystem
53+ luarocks pack luahbtex
54+ luarocks pack nvim-textmate
55+ luarocks pack ltreesitter
56+ luarocks pack lua-template
57+ - uses : actions/upload-artifact@v4
58+ with :
59+ name : artifact-${{matrix.runs-on}}
60+ path : |
61+ *.rock
62+
1963 deploy :
64+ needs : build
2065 runs-on : ubuntu-latest
2166 steps :
2267 - uses : actions/checkout@v4
4085 gem install rake
4186 sudo apt-get -y update
4287 sudo apt-get -y install rename liblua5.3-dev
88+ rm -f ./*.rock
89+ - uses : actions/download-artifact@v4
90+ with :
91+ pattern : artifact-*
92+ merge-multiple : true
4393 - env :
4494 TEXMFDOTDIR : .;~/.luarocks/lib/luarocks/rocks-5.3//
4595 CGO_CFLAGS : -I/home/runner/work/texrocks/texrocks/.lua/include
0 commit comments