-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 982 Bytes
/
build-toml.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
name: CI
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os.host }}
strategy:
matrix:
os:
- host: ubuntu-20.04
- host: windows-2019
- host: macos-11
steps:
- name: Install C/C++ Compiler
uses: rlalik/setup-cpp-compiler@master
with:
compiler: clang-latest
if: ${{ matrix.os.host }} != "windows-2019"
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os.host }} == "windows-2019"
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install TOML Package
run: |
luarocks --local install toml
luarocks pack toml
- uses: actions/upload-artifact@v3
with:
name: output-${{ matrix.os.host }}.rock
path: "*.rock"