mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 20:13:34 +08:00
Switch from jenkins to github actions
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
|
||||
name: Build Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Linux-GCC:
|
||||
runs-on: ubuntu-latest
|
||||
container: px4io/px4-dev-base-bionic:2020-01-13
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: main build
|
||||
run: make
|
||||
- name: clean build
|
||||
run: make clean
|
||||
- name: main test
|
||||
run: make test
|
||||
Linux-Clang:
|
||||
runs-on: ubuntu-latest
|
||||
container: px4io/px4-dev-clang:2019-10-24
|
||||
env:
|
||||
CC: clang
|
||||
CXX: clang++
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: main build
|
||||
run: make
|
||||
- name: clean build
|
||||
run: make clean
|
||||
# TODO: This is not running at the moment
|
||||
#- name: main test
|
||||
# run: make test
|
||||
Mac-OS:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: main build
|
||||
run: make
|
||||
- name: clean build
|
||||
run: make clean
|
||||
# TODO: This is not running at the moment
|
||||
#- name: main test
|
||||
# run: make test
|
||||
@@ -0,0 +1,33 @@
|
||||
name: Firmware Build Test
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Firmware-build:
|
||||
runs-on: ubuntu-latest
|
||||
container: px4io/px4-dev-base-bionic:2020-01-13
|
||||
env:
|
||||
GIT_COMMITTER_EMAIL: bot@px4.io
|
||||
GIT_COMMITTER_NAME: PX4BuildBot
|
||||
steps:
|
||||
- name: Checkout Firmware master
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
repository: PX4/Firmware
|
||||
ref: master
|
||||
submodules: recurvise
|
||||
- run: git submodule update --init --recursive
|
||||
working-directory: ../Firmware
|
||||
- name: Configure Firmware to include current ECL version
|
||||
working-directory: ../Firmware/src/lib/ecl
|
||||
run: git checkout ${{ github.sha }}
|
||||
- name: Add and commit new ECL version
|
||||
run: |
|
||||
git config --global user.email "${GIT_COMMITTER_EMAIL}"
|
||||
git config --global user.name "${GIT_COMMITTER_NAME}"
|
||||
git add src/lib/ecl
|
||||
git commit -m "Update ECL"
|
||||
working-directory: ../Firmware
|
||||
- name: Build Firmware
|
||||
working-directory: ../Firmware
|
||||
run: make
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Unit Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
unit_tests:
|
||||
runs-on: ubuntu-latest
|
||||
container: px4io/px4-dev-base-bionic:2020-01-13
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: main test
|
||||
run: make test
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
container: px4io/px4-dev-base-bionic:2020-01-13
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: coverage
|
||||
run: make coverage
|
||||
- name: coverage_html
|
||||
run: make coverage_html
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
flags: ecl
|
||||
Reference in New Issue
Block a user