From 013856fac1b6331165df6a7c94299fde67afb1f1 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 18 Jul 2023 19:18:01 +0200 Subject: [PATCH] generate_board_targets: explicitly specify build containers in order to have the right container version for each toolchain currently for the metadata deployment GitHub actions build. --- .github/workflows/deploy_all.yml | 2 +- Tools/generate_board_targets_json.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy_all.yml b/.github/workflows/deploy_all.yml index 8b0925e688..3417ea7d0a 100644 --- a/.github/workflows/deploy_all.yml +++ b/.github/workflows/deploy_all.yml @@ -24,7 +24,7 @@ jobs: needs: enumerate_targets strategy: matrix: ${{fromJson(needs.enumerate_targets.outputs.matrix)}} - container: px4io/px4-dev-${{ matrix.container }}:2021-09-08 + container: ${{ matrix.container }} steps: - uses: actions/checkout@v1 with: diff --git a/Tools/generate_board_targets_json.py b/Tools/generate_board_targets_json.py index 83b21e9a74..7def257d65 100755 --- a/Tools/generate_board_targets_json.py +++ b/Tools/generate_board_targets_json.py @@ -61,18 +61,19 @@ def process_target(px4board_file, target_name): if platform not in excluded_platforms: # get the container based on the platform and toolchain - container = platform if platform == 'posix': - container = 'base-focal' + container = 'px4io/px4-dev-base-focal:2021-09-08' if toolchain: if toolchain.startswith('aarch64'): - container = 'aarch64' + container = 'px4io/px4-dev-aarch64:2021-09-08' elif toolchain == 'arm-linux-gnueabihf': - container = 'armhf' + container = 'px4io/px4-dev-armhf:2021-09-08' else: - if verbose: print(f'possibly unmatched toolchain: {toolchain}') + if verbose: print(f'unmatched toolchain: {toolchain}') elif platform == 'nuttx': - container = 'nuttx-focal' + container = 'px4io/px4-dev-nuttx-focal:2021-09-08' + else: + if verbose: print(f'unmatched platform: {platform}') ret = {'target': target_name, 'container': container} @@ -113,4 +114,3 @@ extra_args = {} if args.pretty: extra_args['indent'] = 2 print(json.dumps(github_action_config, **extra_args)) -