Skip to content

Commit

Permalink
ci: replace hererocks with lua/luarocks github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 4, 2023
1 parent 8f76f50 commit dc7069d
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,24 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "lua 5.4", "luajit 2.1"]
lua: ["5.1", "5.2", "5.3", "5.4"] # FIXME:, "luajit-2.1.0"]

steps:
- uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
- name: Install Lua
uses: leso-kn/gh-actions-lua@master
with:
python-version: '3.10'
luaVersion: ${{ matrix.lua }}

- name: Install Lua
env:
# luajit fails to build on macos without this
MACOSX_DEPLOYMENT_TARGET: "10.15"
run: |
python -m pip install hererocks
python -m hererocks lua_install --${{ matrix.lua }} -rlatest
. lua_install/bin/activate
luarocks install busted
- name: Install Luarocks
# NOTE: This is a fork with Windows support
uses: hishamhm/gh-actions-luarocks@master

- name: Build
run: |
. lua_install/bin/activate
luarocks make
- name: Test
run: |
. lua_install/bin/activate
busted test/fzy_spec.lua
luarocks test

0 comments on commit dc7069d

Please sign in to comment.