-
Notifications
You must be signed in to change notification settings - Fork 20
67 lines (59 loc) · 2 KB
/
ci.yaml
File metadata and controls
67 lines (59 loc) · 2 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
59
60
61
62
63
64
65
66
67
name: CI
on:
pull_request:
push:
branches:
- "master"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
name: Build on ${{ matrix.arch }} using ${{ matrix.cc }}
strategy:
matrix:
cc:
- "gcc"
- "clang"
arch:
- "amd64"
- "aarch64"
- "ppc64le"
steps:
- uses: actions/checkout@v2
- uses: uraimo/run-on-arch-action@v2.1.1
if: ${{ matrix.arch != 'amd64' }}
name: Build and test
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
env: |
CC: ${{ matrix.cc }}
install: |
apt-get update -y -q
apt-get install -q -y \
build-essential \
clang \
debhelper \
libtool \
liblua5.1-dev
run: |
# Build the package.
(cd pkg && make deb)
# Compile and run the tests.
(cd src && make clean && DEBUG=1 make tests)
- name: Build and test
if: ${{ matrix.arch == 'amd64' }}
env:
CC: ${{ matrix.cc }}
run: |
sudo apt-get install -q -y \
build-essential \
clang \
debhelper \
libtool \
liblua5.1-dev
# Build the package.
(cd pkg && make deb)
# Compile and run the tests.
(cd src && make clean && DEBUG=1 make tests)