2020-08-06 13:54:53 +00:00
|
|
|
name: C/C++ CI
|
|
|
|
|
2020-09-04 00:39:10 +00:00
|
|
|
on: [push, pull_request]
|
2020-08-06 13:54:53 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-08-28 04:16:23 +00:00
|
|
|
- name: Install cross compile toolchain
|
2020-10-19 12:31:06 +00:00
|
|
|
run: sudo apt-get install gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf libspdlog-dev
|
2020-08-06 13:54:53 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-09-04 00:39:10 +00:00
|
|
|
|
2020-10-19 12:31:06 +00:00
|
|
|
- name: dump arm gcc version
|
|
|
|
run: arm-linux-gnueabihf-gcc -v
|
|
|
|
working-directory: ./src/raspberrypi
|
|
|
|
|
|
|
|
- name: dump native gcc version
|
|
|
|
run: gcc -v
|
|
|
|
working-directory: ./src/raspberrypi
|
|
|
|
|
|
|
|
|
2020-09-04 00:39:10 +00:00
|
|
|
- name: make standard
|
|
|
|
run: make all DEBUG=1 CONNECT_TYPE=STANDARD
|
|
|
|
working-directory: ./src/raspberrypi
|
|
|
|
|
|
|
|
- name: make fullspec
|
|
|
|
run: make all DEBUG=1 CONNECT_TYPE=FULLSPEC
|
2020-08-06 13:58:27 +00:00
|
|
|
working-directory: ./src/raspberrypi
|
2020-08-06 20:49:39 +00:00
|
|
|
|
2020-09-04 00:39:10 +00:00
|
|
|
# We need to tar the binary outputs to retain the executable
|
|
|
|
# file permission. Currently, actions/upload-artifact only
|
|
|
|
# supports .ZIP files.
|
|
|
|
# This is workaround for https://github.com/actions/upload-artifact/issues/38
|
|
|
|
- name: tar binary outputs
|
|
|
|
run: tar -czvf rascsi.tar.gz ./bin
|
|
|
|
working-directory: ./src/raspberrypi
|
|
|
|
|
|
|
|
- name: upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: arm-binaries
|
|
|
|
path: ./src/raspberrypi/rascsi.tar.gz
|
|
|
|
|
2020-08-07 17:56:05 +00:00
|
|
|
# buildroot-image:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: git-fetch buildroot
|
|
|
|
# run: git clone git://git.busybox.net/buildroot
|
|
|
|
# - name: make defconfig
|
|
|
|
# run: make raspberrypi4_defconfig
|
|
|
|
# working-directory: ./buildroot
|
|
|
|
# - name: make
|
|
|
|
# run: make all
|
|
|
|
# working-directory: ./buildroot
|