Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG authored Jan 6, 2024
1 parent ce278d5 commit 0718b1b
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2
strategy:
fail-fast: false
matrix:
luaVersion: ["5.3"]

- name: Install Lua
run: sudo apt-get install lua5.3
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Lua development files
run: sudo apt-get install liblua5.3-dev
- uses: leafo/gh-actions-lua@v8
with:
luaVersion: ${{ matrix.luaVersion }}

- name: Install Luarocks
run: |
sudo apt-get install luarocks
- name: Configure Lua header files for Luarocks
run: |
export LUA_PATH=/usr/include/lua5.3
export LUA_DIR=/usr/include/lua5.3
sudo luarocks config variables.LUA_INCDIR /usr/include/lua5.3
sudo luarocks config variables.LUA_LIBDIR /usr/lib/x86_64-linux-gnu
sudo luarocks config variables.LUA_BINDIR /usr/bin
- uses: leafo/gh-actions-luarocks@v4

- name: Install dependencies
run: sudo make install_dependencies
Expand Down

0 comments on commit 0718b1b

Please sign in to comment.