From dc7069def0f0fd7e610d277c2c6f07426ed140c3 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 4 Dec 2023 19:26:44 +0100 Subject: [PATCH] ci: replace hererocks with lua/luarocks github actions --- .github/workflows/spec.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 2bb8e63..d2b522a 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -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