-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (47 loc) · 1.51 KB
/
test.yaml
File metadata and controls
58 lines (47 loc) · 1.51 KB
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
58
name: Testing
on:
push:
pull_request:
jobs:
testing:
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
LIBLUA:
- "5.4"
- "5.3"
- "5.2"
- "5.1"
fail-fast: false
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup common packages
run: sudo apt install -y clang-15 libclang-common-15-dev
- name: Setup Lua 5.1 packages
run: sudo apt install -y lua5.1 liblua5.1-0-dev
if: ${{ matrix.LIBLUA == '5.1' }}
- name: Setup Lua 5.2 packages
run: sudo apt install -y lua5.2 liblua5.2-dev
if: ${{ matrix.LIBLUA == '5.2' }}
- name: Setup Lua 5.3 packages
run: sudo apt install -y lua5.3 liblua5.3-dev
if: ${{ matrix.LIBLUA == '5.3' }}
- name: Setup Lua 5.4 packages
run: sudo apt install -y lua5.4 liblua5.4-dev
if: ${{ matrix.LIBLUA == '5.4' }}
- name: Running CMake
run: cmake -DCMAKE_C_COMPILER=clang-15 -DCMAKE_CXX_COMPILER=clang++-15 -DENABLE_TESTING=ON -S . -B build
- name: Building
run: cmake --build build --parallel $(nproc)
- name: Testing
run: cmake --build build --target test
env:
CTEST_OUTPUT_ON_FAILURE: 1
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
if: ${{ failure() }}