-
Notifications
You must be signed in to change notification settings - Fork 1k
64 lines (57 loc) · 1.88 KB
/
build_linux.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
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
name: C/C++ CI
on: [push]
jobs:
build-RPi-BCM2835:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: provide toolchain
run: |
sudo apt-get update && \
sudo apt-get install binutils-arm-linux-gnueabi gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf &&
arm-linux-gnueabihf-gcc -v &&
arm-linux-gnueabihf-g++ -v
- name: configure
run: ./configure --soc=BCM2835 --driver=RPi
- name: make
run: make
- name: make
run: sudo make install
build-RPi-BCM2836:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: provide toolchain
run: |
sudo apt-get update && \
sudo apt-get install binutils-arm-linux-gnueabi gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf &&
arm-linux-gnueabihf-gcc -v &&
arm-linux-gnueabihf-g++ -v
- name: configure
run: ./configure --soc=BCM2836 --driver=RPi
- name: make
run: make
- name: make
run: sudo make install
build-wiringPi-BCM2835:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: provide toolchain
run: |
sudo apt-get update && \
sudo apt-get install binutils-arm-linux-gnueabi gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf &&
arm-linux-gnueabihf-gcc -v &&
arm-linux-gnueabihf-g++ -v
- name: provide wiringPi
run: |
git clone https://github.com/CoRfr/WiringPi &&
cd WiringPi/wiringPi &&
CC="arm-linux-gnueabihf-gcc -marm -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" V=1 make -j5 &&
sudo make install
- name: configure
run: ./configure --soc=BCM2835 --driver=wiringPi --extra-cflags=-I/usr/local/include
- name: make
run: make
- name: make
run: sudo make install