mirror of
https://github.com/thewesker/RASCSI.git
synced 2025-12-21 04:41:12 -05:00
Workflow integration (#29)
* Updated makefile to only rebuild changed files. Also generates dependency listings to check for modified header files * Updated workflow to archive the generated binaries and build fullspec and standard versions of the app * Updated to run workflow on all branches * Create tar file to retain file permissions * Fix archive path * Fix typo * Remove unnecessary git ignore * Added reference to issue that drives the need for nested compressed files. Co-authored-by: akuker <akuker@gmail.com>
This commit is contained in:
29
.github/workflows/c-cpp.yml
vendored
29
.github/workflows/c-cpp.yml
vendored
@@ -1,10 +1,6 @@
|
||||
name: C/C++ CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -15,9 +11,28 @@ jobs:
|
||||
- name: Install cross compile toolchain
|
||||
run: sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
|
||||
- uses: actions/checkout@v2
|
||||
- name: make
|
||||
run: make all DEBUG=1
|
||||
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user