mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 01:31:25 +00:00
#1012 Add debug build and gamernium/aibom builds
This commit is contained in:
parent
eb71c31cf1
commit
eca8145311
18
.github/workflows/arm_cross_compile.yml
vendored
18
.github/workflows/arm_cross_compile.yml
vendored
@ -4,6 +4,10 @@ on:
|
|||||||
connect-type:
|
connect-type:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
# Debug flag indicates whether to build a debug build (no optimization, debugger symbols)
|
||||||
|
debug-flag:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_arm:
|
build_arm:
|
||||||
@ -35,18 +39,24 @@ jobs:
|
|||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
run: sudo apt-get --yes install ${{ env.APT_ARM_TOOLCHAIN }} ${{ env.APT_LIBRARIES }}
|
run: sudo apt-get --yes install ${{ env.APT_ARM_TOOLCHAIN }} ${{ env.APT_LIBRARIES }}
|
||||||
|
|
||||||
|
- name: Build debug strings
|
||||||
|
if: ${{ inputs.debug-flag }}
|
||||||
|
run: |
|
||||||
|
echo "debug_flag_compile=DEBUG\=1" >> $GITHUB_ENV
|
||||||
|
echo "debug_flag_filename=debug-" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: make all -j 6 CONNECT_TYPE=${{ inputs.connect-type }} CROSS_COMPILE=arm-linux-gnueabihf-
|
run: make all -j 6 CONNECT_TYPE=${{ inputs.connect-type }} ${{ env.debug_flag_compile }} CROSS_COMPILE=arm-linux-gnueabihf-
|
||||||
|
|
||||||
# We need to tar the binary outputs to retain the executable
|
# We need to tar the binary outputs to retain the executable
|
||||||
# file permission. Currently, actions/upload-artifact only
|
# file permission. Currently, actions/upload-artifact only
|
||||||
# supports .ZIP files.
|
# supports .ZIP files.
|
||||||
# This is workaround for https://github.com/actions/upload-artifact/issues/38
|
# This is workaround for https://github.com/actions/upload-artifact/issues/38
|
||||||
- name: Tar binary output
|
- name: Tar binary output
|
||||||
run: tar -czvf rascsi-${{ inputs.connect-type }}.tar.gz ./bin
|
run: tar -czvf ${{ env.debug_flag_filename }}rascsi-${{ inputs.connect-type }}.tar.gz ./bin
|
||||||
|
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: arm-binaries-${{ inputs.connect-type }}.tar.gz
|
name: ${{ env.debug_flag_filename }}arm-binaries-${{ inputs.connect-type }}.tar.gz
|
||||||
path: cpp/rascsi-${{ inputs.connect-type }}.tar.gz
|
path: cpp/${{ env.debug_flag_filename }}rascsi-${{ inputs.connect-type }}.tar.gz
|
||||||
|
18
.github/workflows/build_code.yml
vendored
18
.github/workflows/build_code.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'cpp/**'
|
- 'cpp/**'
|
||||||
- '.github/workflows/build_code.yml'
|
- '.github/workflows/build_code.yml'
|
||||||
|
- '.github/workflows/arm_cross_compile.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fullspec:
|
fullspec:
|
||||||
@ -17,3 +18,20 @@ jobs:
|
|||||||
uses: akuker/RASCSI/.github/workflows/arm_cross_compile.yml@develop
|
uses: akuker/RASCSI/.github/workflows/arm_cross_compile.yml@develop
|
||||||
with:
|
with:
|
||||||
connect-type: "STANDARD"
|
connect-type: "STANDARD"
|
||||||
|
|
||||||
|
aibom:
|
||||||
|
uses: akuker/RASCSI/.github/workflows/arm_cross_compile.yml@develop
|
||||||
|
with:
|
||||||
|
connect-type: "AIBOM"
|
||||||
|
|
||||||
|
gamernium:
|
||||||
|
uses: akuker/RASCSI/.github/workflows/arm_cross_compile.yml@develop
|
||||||
|
with:
|
||||||
|
connect-type: "GAMERNIUM"
|
||||||
|
|
||||||
|
# The fullspec connection board is the most common
|
||||||
|
debug-fullspec:
|
||||||
|
uses: akuker/RASCSI/.github/workflows/arm_cross_compile.yml@develop
|
||||||
|
with:
|
||||||
|
connect-type: "FULLSPEC"
|
||||||
|
debug-flag: true
|
Loading…
Reference in New Issue
Block a user