From 8e288629d028ae3f21136b6b75be5a4bc74c0931 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Wed, 20 Nov 2024 10:56:05 -0800 Subject: [PATCH] ci: move runners to capacity optimized --- .github/workflows/build_all_targets.yml | 8 ++++---- .github/workflows/sitl_tests.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_all_targets.yml b/.github/workflows/build_all_targets.yml index b8073d56ab..b8b66854e6 100644 --- a/.github/workflows/build_all_targets.yml +++ b/.github/workflows/build_all_targets.yml @@ -27,7 +27,7 @@ jobs: group_targets: name: Scan for Board Targets # runs-on: ubuntu-latest - runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}"] + runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized] outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} timestamp: ${{ steps.set-timestamp.outputs.timestamp }} @@ -75,7 +75,7 @@ jobs: setup: name: Build Group [${{ matrix.group }}] # runs-on: ubuntu-latest - runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}"] + runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized] needs: group_targets strategy: matrix: ${{ fromJson(needs.group_targets.outputs.matrix) }} @@ -128,7 +128,7 @@ jobs: artifacts: name: Upload Artifacts to S3 # runs-on: ubuntu-latest - runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}"] + runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized] needs: [setup, group_targets] if: contains(fromJSON('["main", "stable", "beta"]'), needs.group_targets.outputs.branchname) steps: @@ -157,7 +157,7 @@ jobs: release: name: Create Release and Upload Artifacts # runs-on: ubuntu-latest - runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}"] + runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized] needs: [setup, group_targets] if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' steps: diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 0492137a49..da6ad69290 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -16,7 +16,7 @@ on: jobs: build: name: Testing PX4 ${{ matrix.config.model }} - runs-on: [runs-on,runner=16cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}"] + runs-on: [runs-on,runner=16cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized] container: image: px4io/px4-dev-simulation-focal:2021-09-08 options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined