Skip to content

Commit 8695dea

Browse files
committed
ci: use actions/checkout for LuaCS
1 parent af195c2 commit 8695dea

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,18 @@ jobs:
3333
timeout-minutes: 5
3434
steps:
3535
- uses: actions/checkout@v4
36-
- name: Install XMLua
36+
with:
37+
path: "xmlua"
38+
- uses: actions/checkout@v4
39+
with:
40+
repository: "clear-code/luacs"
41+
path: "luacs"
42+
- name: Install dependencies
3743
run: |
38-
brew update
3944
brew bundle
45+
- name: Install XMLua
46+
run: |
47+
cd xmlua
4048
LUAROCKS="sudo -H luarocks --tree=$(brew --prefix) --lua-dir=$(brew --prefix luajit)"
4149
VERSION=$(grep VERSION xmlua.lua | sed -e 's/.*"\(.*\)"/\1/g')
4250
cp xmlua.rockspec xmlua-${VERSION}-0.rockspec
@@ -46,9 +54,9 @@ jobs:
4654
${LUAROCKS} install cqueues \
4755
CRYPTO_DIR=$(brew --prefix openssl) \
4856
OPENSSL_DIR=$(brew --prefix openssl)
49-
git clone --depth 1 https://github.com/clear-code/luacs.git ../luacs
5057
- name: Test
5158
run: |
59+
cd xmlua
5260
test/run-test.lua
5361
luajit -e 'package.path = "../luacs/?.lua;" .. package.path' \
5462
sample/parse-html-cqueues-thread.lua sample/sample.html

0 commit comments

Comments
 (0)