mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
github actions: compile nuttx archive bin files and remove duplicate nuttx cannode builds
This commit is contained in:
@@ -110,4 +110,6 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: px4_package_${{matrix.config}}
|
name: px4_package_${{matrix.config}}
|
||||||
path: build/**/*.px4
|
path: |
|
||||||
|
build/**/*.px4
|
||||||
|
build/**/*.bin
|
||||||
|
|||||||
@@ -1,64 +0,0 @@
|
|||||||
name: NuttX UAVCAN firmware
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: px4io/px4-dev-nuttx-focal:2021-09-08
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
config: [
|
|
||||||
ark_can-flow_default,
|
|
||||||
ark_can-gps_default,
|
|
||||||
ark_can-rtk-gps_default,
|
|
||||||
cuav_can-gps-v1_default,
|
|
||||||
freefly_can-rtk-gps_default,
|
|
||||||
holybro_can-gps-v1_default,
|
|
||||||
nxp_ucans32k146_default
|
|
||||||
]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
token: ${{secrets.ACCESS_TOKEN}}
|
|
||||||
|
|
||||||
- name: Prepare ccache timestamp
|
|
||||||
id: ccache_cache_timestamp
|
|
||||||
shell: cmake -P {0}
|
|
||||||
run: |
|
|
||||||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
|
|
||||||
message("::set-output name=timestamp::${current_date}")
|
|
||||||
- name: ccache cache files
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.ccache
|
|
||||||
key: ${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
|
|
||||||
restore-keys: ${{matrix.config}}-ccache-
|
|
||||||
- name: setup ccache
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ccache
|
|
||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
|
||||||
echo "max_size = 40M" >> ~/.ccache/ccache.conf
|
|
||||||
echo "hash_dir = false" >> ~/.ccache/ccache.conf
|
|
||||||
ccache -s
|
|
||||||
ccache -z
|
|
||||||
|
|
||||||
- name: make ${{matrix.config}}
|
|
||||||
run: make ${{matrix.config}}
|
|
||||||
|
|
||||||
- name: ccache post-run
|
|
||||||
run: ccache -s
|
|
||||||
|
|
||||||
- name: Upload px4 package
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: px4_cannode_${{matrix.config}}
|
|
||||||
path: build/${{matrix.config}}/*.uavcan.bin
|
|
||||||
Reference in New Issue
Block a user