Skip to content

Commit

Permalink
CI: update github action to remove deprecation warnings from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokesh Ramina committed Sep 29, 2023
1 parent d73348e commit cab1977
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 37 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cygwin_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
run: |
C:\Cygwin\bin\bash --login -c "Tools/scripts/cygwin_build.sh"
- name: Check build files
id: check_files
uses: andstor/file-existence-action@v2
with:
files: "artifacts/*"
fail: true

- name: Archive build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: binaries
path: artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_chibios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_linux_sbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
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 @@ -32,7 +32,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{ matrix.toolchain }}-${{matrix.config}}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -112,7 +112,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -126,7 +126,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
Expand All @@ -148,7 +148,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -219,7 +219,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -233,7 +233,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_sitl_periph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
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 @@ -29,7 +29,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -107,7 +107,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -121,7 +121,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
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 @@ -29,7 +29,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -107,7 +107,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -121,7 +121,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
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 @@ -29,7 +29,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -106,7 +106,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -120,7 +120,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand All @@ -106,7 +106,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{matrix.config}}
Expand All @@ -120,7 +120,7 @@ jobs:
retention-days: 14

- name: Archive .bin artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
zip -r elf_diff.zip elf_diff
- name: Archive elf_diff output
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ELF_DIFF_${{matrix.config}}
path: elf_diff.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: ccache_cache_timestamp
run: |
NOW=$(date -u +"%F-%T")
echo "::set-output name=timestamp::${NOW}"
echo "{timestamp}=${NOW}" >> $GITHUB_OUTPUT
- name: ccache cache files
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
Tools/scripts/build_ci.sh
- name: Archive buildlog artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: fail-${{ matrix.toolchain }}-${{matrix.config}}
Expand Down

0 comments on commit cab1977

Please sign in to comment.