mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
.github: update rules
This commit is contained in:
parent
08f6c56276
commit
5df7e4e32b
2
.github/workflows/esp32_build.yml
vendored
2
.github/workflows/esp32_build.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
sudo apt install cmake
|
||||
|
||||
|
||||
git submodule update --init --recursive
|
||||
git submodule update --init --recursive --depth=1
|
||||
./Tools/scripts/esp32_get_idf.sh
|
||||
|
||||
sudo ln -s /usr/bin/ninja /usr/bin/ninja-build
|
||||
|
2
.github/workflows/macos_build.yml
vendored
2
.github/workflows/macos_build.yml
vendored
@ -7,7 +7,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: 'macos-latest'
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
fail-fast: false # don't cancel if a job from the matrix fails
|
||||
matrix:
|
||||
|
2
.github/workflows/test_chibios.yml
vendored
2
.github/workflows/test_chibios.yml
vendored
@ -70,7 +70,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
17
.github/workflows/test_coverage.yml
vendored
17
.github/workflows/test_coverage.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
container:
|
||||
image: ardupilot/ardupilot-dev-coverage:latest
|
||||
image: ardupilot/ardupilot-dev-${{ matrix.type }}:latest
|
||||
options: --privileged
|
||||
strategy:
|
||||
fail-fast: false # don't cancel if a job from the matrix fails
|
||||
@ -27,6 +27,15 @@ jobs:
|
||||
coverage,
|
||||
sitltest-can,
|
||||
]
|
||||
type: [
|
||||
coverage,
|
||||
]
|
||||
include:
|
||||
- config: sitltest-can
|
||||
type: periph
|
||||
exclude:
|
||||
- config: sitltest-can
|
||||
type: coverage
|
||||
steps:
|
||||
# git checkout the PR
|
||||
- uses: actions/checkout@v3
|
||||
@ -50,10 +59,8 @@ jobs:
|
||||
- name: Configure CAN
|
||||
if: ${{ matrix.config == 'sitltest-can'}}
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
sudo apt update
|
||||
sudo apt install -y gcc-multilib g++-multilib
|
||||
sudo apt -y install can-utils iproute2 linux-modules-extra-$(uname -r)
|
||||
sudo apt -y linux-modules-extra-$(uname -r)
|
||||
sudo modprobe vcan
|
||||
sudo ip link add dev vcan0 type vcan
|
||||
sudo ip link set up vcan0
|
||||
@ -66,7 +73,7 @@ jobs:
|
||||
PATH="/github/home/.local/bin:$PATH"
|
||||
python -m pip install --progress-bar off --user mavproxy
|
||||
python -m pip uninstall -y pymavlink
|
||||
git submodule update --init --recursive
|
||||
git submodule update --init --recursive --depth=1
|
||||
(cd modules/mavlink/pymavlink && DISABLE_MAVNATIVE=True MDEF="$PWD/../message_definitions" python -m pip install --progress-bar off --user .)
|
||||
if [[ ${{ matrix.config }} == "coverage" ]]; then
|
||||
Tools/scripts/run_coverage.py -f
|
||||
|
2
.github/workflows/test_linux_sbc.yml
vendored
2
.github/workflows/test_linux_sbc.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
2
.github/workflows/test_replay.yml
vendored
2
.github/workflows/test_replay.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
8
.github/workflows/test_sitl_copter.yml
vendored
8
.github/workflows/test_sitl_copter.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -96,7 +96,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -150,7 +150,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -190,7 +190,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/test_sitl_periph.yml
vendored
4
.github/workflows/test_sitl_periph.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -92,7 +92,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/test_sitl_plane.yml
vendored
4
.github/workflows/test_sitl_plane.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -91,7 +91,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/test_sitl_rover.yml
vendored
4
.github/workflows/test_sitl_rover.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -92,7 +92,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/test_sitl_sub.yml
vendored
4
.github/workflows/test_sitl_sub.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -90,7 +90,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/test_sitl_tracker.yml
vendored
4
.github/workflows/test_sitl_tracker.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -90,7 +90,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
14
.github/workflows/test_size.yml
vendored
14
.github/workflows/test_size.yml
vendored
@ -11,12 +11,12 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
container: ardupilot/ardupilot-dev-chibios:latest
|
||||
container: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:latest
|
||||
strategy:
|
||||
fail-fast: false # don't cancel if a job from the matrix fails
|
||||
matrix:
|
||||
toolchain: [
|
||||
base, # GCC
|
||||
chibios,
|
||||
]
|
||||
config: [
|
||||
Durandal,
|
||||
@ -25,6 +25,12 @@ jobs:
|
||||
Hitec-Airspeed, # see special code for Periph below (3 places!)
|
||||
f103-GPS # see special code for Periph below (3 places!)
|
||||
]
|
||||
include:
|
||||
- config: disco
|
||||
toolchain: armhf
|
||||
exclude:
|
||||
- config: disco
|
||||
toolchain: chibios
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
@ -149,7 +155,6 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd pr/
|
||||
python3 -m pip install -U tabulate
|
||||
Tools/scripts/pretty_diff_size.py -m $GITHUB_WORKSPACE/base_branch_bin -s $GITHUB_WORKSPACE/pr_bin
|
||||
|
||||
- name: Feature compare with ${{ github.event.pull_request.base.ref }}
|
||||
@ -168,7 +173,8 @@ jobs:
|
||||
- name: elf_diff compare with ${{ github.event.pull_request.base.ref }}
|
||||
shell: bash
|
||||
run: |
|
||||
python3 -m pip install -U weasyprint elf_diff anytree
|
||||
# we don't use weasyprint so manually pull the elf_diff deps reduce install size and time
|
||||
python3 -m pip install -U --no-deps elf_diff GitPython Jinja2 MarkupSafe PyYAML anytree dict2xml gitdb progressbar2 python-utils setuptools-git smmap
|
||||
mkdir elf_diff
|
||||
BIN_PREFIX="arm-none-eabi-"
|
||||
if [ "${{matrix.config}}" = "disco" ]; then
|
||||
|
2
.github/workflows/test_unit_tests.yml
vendored
2
.github/workflows/test_unit_tests.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
id: ccache_cache_timestamp
|
||||
run: |
|
||||
NOW=$(date -u +"%F-%T")
|
||||
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
|
||||
echo "timestamp=${NOW}" >> $GITHUB_OUTPUT
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user