Skip to content

Commit

Permalink
ci: use actions/checkout for LuaCS
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 16, 2023
1 parent af195c2 commit 8695dea
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Install XMLua
with:
path: "xmlua"
- uses: actions/checkout@v4
with:
repository: "clear-code/luacs"
path: "luacs"
- name: Install dependencies
run: |
brew update
brew bundle
- name: Install XMLua
run: |
cd xmlua
LUAROCKS="sudo -H luarocks --tree=$(brew --prefix) --lua-dir=$(brew --prefix luajit)"
VERSION=$(grep VERSION xmlua.lua | sed -e 's/.*"\(.*\)"/\1/g')
cp xmlua.rockspec xmlua-${VERSION}-0.rockspec
Expand All @@ -46,9 +54,9 @@ jobs:
${LUAROCKS} install cqueues \
CRYPTO_DIR=$(brew --prefix openssl) \
OPENSSL_DIR=$(brew --prefix openssl)
git clone --depth 1 https://github.com/clear-code/luacs.git ../luacs
- name: Test
run: |
cd xmlua
test/run-test.lua
luajit -e 'package.path = "../luacs/?.lua;" .. package.path' \
sample/parse-html-cqueues-thread.lua sample/sample.html

0 comments on commit 8695dea

Please sign in to comment.