Skip to content

Commit

Permalink
CI: update github actions to prevent nodejs version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and Lokesh Ramina committed Sep 29, 2023
1 parent 99b877a commit 4186976
Show file tree
Hide file tree
Showing 17 changed files with 258 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cygwin_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: 'windows-latest'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install cygwin
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install Prerequisites
Expand All @@ -35,7 +35,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ccache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
gcc: [10]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: ccache test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_chibios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -60,7 +60,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{ matrix.gcc }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -39,7 +39,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
esac
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: test install environment ${{matrix.os}}.${{matrix.name}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_linux_sbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -53,7 +53,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -34,7 +34,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/test_scripting_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: test scripting docs

on:
push:
paths: # only run for scripting changes
- 'libraries/AP_Scripting/tests/docs_check.py'
- 'libraries/AP_Scripting/generator/**'

pull_request:
paths: # only run for scripting changes
- 'libraries/AP_Scripting/tests/docs_check.py'
- 'libraries/AP_Scripting/generator/**'

workflow_dispatch:

concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-scripting-docs:
runs-on: ubuntu-20.04
container: ardupilot/ardupilot-dev-base:latest
steps:
# git checkout the PR
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: copy docs
run: |
PATH="/github/home/.local/bin:$PATH"
mv "libraries/AP_Scripting/docs/docs.lua" "libraries/AP_Scripting/docs/current_docs.lua"
- name: build sitl # we don't really need to build the full code, just trigger docs re-gen with --scripting-docs, timeout after 10 seconds
shell: bash
run: |
PATH="/github/home/.local/bin:$PATH"
./waf configure --board sitl
timeout 10 ./waf antennatracker --scripting-docs || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
- name: run compare
run: |
PATH="/github/home/.local/bin:$PATH"
python ./libraries/AP_Scripting/tests/docs_check.py "./libraries/AP_Scripting/docs/docs.lua" "./libraries/AP_Scripting/docs/current_docs.lua"
16 changes: 8 additions & 8 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -31,7 +31,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -89,7 +89,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
options: --privileged --cap-add=SYS_PTRACE --security-opt apparmor=unconfined --security-opt seccomp=unconfined
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -150,7 +150,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -196,7 +196,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_sitl_periph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
container: ardupilot/ardupilot-dev-base:latest
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -24,7 +24,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -83,7 +83,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -31,7 +31,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -84,7 +84,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -31,7 +31,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -84,7 +84,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
]
steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -31,7 +31,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

steps:
# git checkout the PR
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# Put ccache into github cache for faster build
Expand All @@ -83,7 +83,7 @@ jobs:
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
- name: ccache cache files
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{github.workflow}}-ccache-base-${{steps.ccache_cache_timestamp.outputs.timestamp}}
Expand Down
Loading

0 comments on commit 4186976

Please sign in to comment.