Skip to content

Commit f824840

Browse files
Merge pull request #58 from striezel-stash/github-ci
add CI configuration for GitHub Actions
2 parents 1c9d255 + 4604d5a commit f824840

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
lua:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- lua: lua=5.1
12+
- lua: lua=5.2
13+
- lua: lua=5.3
14+
- lua: lua=5.4
15+
- lua: luajit=2.0
16+
- lua: luajit=2.1
17+
runs-on: ubuntu-22.04
18+
steps:
19+
# Checks-out the repository under $GITHUB_WORKSPACE.
20+
- uses: actions/checkout@v3
21+
- name: Install Lua (${{ matrix.lua }})
22+
run: |
23+
pip install hererocks
24+
hererocks lua_install -r^ --${{ matrix.lua }}
25+
export PATH=$PATH:$PWD/lua_install/bin
26+
luarocks install lua-cjson2
27+
- name: Build lua-simdjson
28+
run: |
29+
export PATH=$PATH:$PWD/lua_install/bin
30+
luarocks make
31+
- name: Run tests
32+
run: |
33+
export PATH=$PATH:$PWD/lua_install/bin
34+
luarocks install busted
35+
busted --verbose

0 commit comments

Comments
 (0)