-
Notifications
You must be signed in to change notification settings - Fork 86
57 lines (52 loc) · 1.38 KB
/
build.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on: [push]
jobs:
luarocks:
runs-on: ubuntu-20.04
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: Install LuaFormatter
run: sudo -E bash -c 'luarocks install --server=https://luarocks.org/dev luaformatter'
ubuntu:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Debug
make
CTEST_OUTPUT_ON_FAILURE=1 ctest
windows:
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Debug
msbuild "lua-formatter.sln" /clp:ErrorsOnly /target:Build
ctest -C Debug
darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build LuaFormatter
run: |
git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Debug
make
CTEST_OUTPUT_ON_FAILURE=1 ctest