forked from Koihik/LuaFormatter
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 714 Bytes
/
Copy pathmain.yml
File metadata and controls
31 lines (27 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Luarocks
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: luarocks/luarocks.git
ref: master
- name: Install Lua 5.3
run: sudo apt install lua5.3 liblua5.3-dev
- name: Install LuaRocks
run: |
./configure
make build
sudo make install
cd ~
- name: Add g++-9 ppa
run: |
sudo add-apt-repository 'ppa:ubuntu-toolchain-r/test'
sudo apt update
- name: Install g++-9
run: |
sudo apt install g++-9
- name: Install LuaFormatter
run: CXX='g++-9' sudo -E bash -c 'luarocks install --server=https://luarocks.org/dev luaformatter'