mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
1118c344cc
* #7 Re-merge scsimon functionality with latest master. The old scsimon branch was waaaaay too out of date * #7 Re-merge scsimon functionality with latest master. The old scsimon branch was waaaaay too out of date * Added libspdlog-dev as a required package * Cleanup from master re-base * Updated to use GCC version 8, to match the raspberry pi Co-authored-by: akuker <akuker@gmail.com>
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: C/C++ CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install cross compile toolchain
|
|
run: sudo apt-get install gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf libspdlog-dev
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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
|
|
|
|
|
|
- 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
|
|
working-directory: ./src/raspberrypi
|
|
|
|
# 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
|
|
|
|
# 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
|