Skip to content

Commit

Permalink
CI: Use Lua 5.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed May 9, 2024
1 parent c15efb9 commit a5ad04a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install mlton lua5.3 luajit
sudo apt-get install mlton luajit
# ubuntu-20.04 has Lua 5.3.3 as lua5.3, which is buggy.
- name: Cache Lua 5.3 binary
id: cache-lua53
uses: actions/cache@v3
env:
cache-name: cache-lua5.3.6
with:
path: ~/.local/bin
key: ${{ runner.os }}-build-${{ env.cache-name }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}
- if: ${{ steps.cache-lua53.outputs.cache-hit != 'true' }}
name: Build Lua 5.3.6
run: |
curl -LO https://www.lua.org/ftp/lua-5.3.6.tar.gz
tar xf lua-5.3.6.tar.gz
cd lua-5.3.6
make -j linux
mkdir -p ~/.local/bin
cp src/lua ~/.local/bin/
cp src/luac ~/.local/bin/
- name: Build
run: make
- name: Test (Lua)
Expand Down

0 comments on commit a5ad04a

Please sign in to comment.