-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 2.16 KB
/
ci.yaml
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: quality-assurance-checks
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Install build dependencies
run: |
sudo apt-get update -
sudo apt-get install --no-install-recommends -y \
build-essential \
ca-certificates \
clang \
clang-format \
git \
libtinfo5 \
meson \
python3-jinja2 \
wget
- name: Generate cross-compilation configuration
run: |
./scripts/generate_cross_compilation_conf.sh
- name: Load cached dependencies
id: cached-qa-dependencies
uses: actions/cache@v3
with:
path: SDK_6.3.0
key: qa-${{ runner.os }}-${{ hashFiles('**/meson.build') }}
- name: Optionally build dependencies
if: steps.cached-qa-dependencies.outputs.cache-hit != 'true'
run: |
mkdir 3rd-parties
cd 3rd-parties
wget https://ftp.gnu.org/gnu/gsl/gsl-2.7.1.tar.gz
tar -xzf gsl-2.7.1.tar.gz
cd gsl-2.7.1
CROSS=arm-obreey-linux-gnueabi
./configure --prefix=$PWD/../../SDK_6.3.0/SDK-B288/usr/$CROSS/sysroot \
--host=$CROSS \
--build=x86_64-pc-linux-gnu \
--target=$CROSS \
CC=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/$CROSS-clang \
CXX=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/$CROSS-clang++ \
AR=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/$CROSS-ar \
STRIP=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/$CROSS-strip \
RANLIB=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/$CROSS-ranlib \
PKGCONFIG=$PWD/../../SDK_6.3.0/SDK-B288/usr/bin/pkg-config \
CFLAGS="-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
make -j2
make install
- name: Run format check
run: |
meson setup builddir . --cross-file crossfile_arm.ini
ninja -C builddir clang-format-check