Skip to content

Commit 9e082be

Browse files
committed
ci: add build job
1 parent db31f46 commit 9e082be

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,32 @@ jobs:
5050
version: 0.11.2
5151
token: ${{ secrets.GITHUB_TOKEN }}
5252
args: --color always --check evdev/
53+
54+
build:
55+
name: build
56+
runs-on: ubuntu-20.04
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v2
60+
- name: Get Cache Key
61+
id: luver-cache-key
62+
env:
63+
CI_RUNNER_OS: ${{ runner.os }}
64+
CI_SECRETS_CACHE_VERSION: ${{ secrets.CACHE_VERSION }}
65+
run: |
66+
echo "::set-output name=value::${CI_RUNNER_OS}-luver-${CI_SECRETS_CACHE_VERSION}-build-$(date -u +%Y-%m-%d)"
67+
shell: bash
68+
- name: Setup Cache
69+
uses: actions/cache@v2
70+
with:
71+
path: ~/.local/share/luver
72+
key: ${{ steps.luver-cache-key.outputs.value }}
73+
- name: Setup Lua
74+
uses: MunifTanjim/luver-action@v1
75+
with:
76+
default: 5.1.5
77+
lua_versions: 5.1.5
78+
luajit_versions: 5.1.5:2.1.0-git
79+
luarocks_versions: 5.1.5:3.8.0
80+
- name: Build
81+
run: luarocks make --no-install rockspecs/lua-evdev-dev-1.rockspec

0 commit comments

Comments
 (0)