Skip to content

Commit

Permalink
Merge pull request #58 from striezel-stash/github-ci
Browse files Browse the repository at this point in the history
add CI configuration for GitHub Actions
  • Loading branch information
FourierTransformer authored Sep 23, 2023
2 parents 1c9d255 + 4604d5a commit f824840
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on: push

jobs:
lua:
strategy:
fail-fast: false
matrix:
include:
- lua: lua=5.1
- lua: lua=5.2
- lua: lua=5.3
- lua: lua=5.4
- lua: luajit=2.0
- lua: luajit=2.1
runs-on: ubuntu-22.04
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v3
- name: Install Lua (${{ matrix.lua }})
run: |
pip install hererocks
hererocks lua_install -r^ --${{ matrix.lua }}
export PATH=$PATH:$PWD/lua_install/bin
luarocks install lua-cjson2
- name: Build lua-simdjson
run: |
export PATH=$PATH:$PWD/lua_install/bin
luarocks make
- name: Run tests
run: |
export PATH=$PATH:$PWD/lua_install/bin
luarocks install busted
busted --verbose

0 comments on commit f824840

Please sign in to comment.