mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
ci: disable spot instances
guarantee execution of jobs
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
|||||||
group_targets:
|
group_targets:
|
||||||
name: Scan for Board Targets
|
name: Scan for Board Targets
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized]
|
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=false]
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
timestamp: ${{ steps.set-timestamp.outputs.timestamp }}
|
timestamp: ${{ steps.set-timestamp.outputs.timestamp }}
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
setup:
|
setup:
|
||||||
name: Build Group [${{ matrix.group }}]
|
name: Build Group [${{ matrix.group }}]
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized]
|
runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=false]
|
||||||
needs: group_targets
|
needs: group_targets
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJson(needs.group_targets.outputs.matrix) }}
|
matrix: ${{ fromJson(needs.group_targets.outputs.matrix) }}
|
||||||
@@ -128,7 +128,7 @@ jobs:
|
|||||||
artifacts:
|
artifacts:
|
||||||
name: Upload Artifacts to S3
|
name: Upload Artifacts to S3
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized]
|
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=false]
|
||||||
needs: [setup, group_targets]
|
needs: [setup, group_targets]
|
||||||
if: contains(fromJSON('["main", "stable", "beta"]'), needs.group_targets.outputs.branchname)
|
if: contains(fromJSON('["main", "stable", "beta"]'), needs.group_targets.outputs.branchname)
|
||||||
steps:
|
steps:
|
||||||
@@ -157,7 +157,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Create Release and Upload Artifacts
|
name: Create Release and Upload Artifacts
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized]
|
runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=false]
|
||||||
needs: [setup, group_targets]
|
needs: [setup, group_targets]
|
||||||
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
|
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
version: ['ubuntu:22.04', 'ubuntu:24.04']
|
version: ['ubuntu:22.04', 'ubuntu:24.04']
|
||||||
runs-on: [runs-on,runner=8cpu-linux-x64,"image=ubuntu24-full-x64","run-id=${{ github.run_id }}"]
|
runs-on: [runs-on,runner=8cpu-linux-x64,"image=ubuntu24-full-x64","run-id=${{ github.run_id }}",spot=false]
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.version }}
|
image: ${{ matrix.version }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Container
|
name: Build Container
|
||||||
runs-on: [runs-on,runner=8cpu-linux-x64,"image=ubuntu24-full-x64","run-id=${{ github.run_id }}"]
|
runs-on: [runs-on,runner=8cpu-linux-x64,"image=ubuntu24-full-x64","run-id=${{ github.run_id }}",spot=false]
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Testing PX4 ${{ matrix.config.model }}
|
name: Testing PX4 ${{ matrix.config.model }}
|
||||||
runs-on: [runs-on,runner=16cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=capacity-optimized]
|
runs-on: [runs-on,runner=16cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=false]
|
||||||
container:
|
container:
|
||||||
image: px4io/px4-dev-simulation-focal:2021-09-08
|
image: px4io/px4-dev-simulation-focal:2021-09-08
|
||||||
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
|
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
|
||||||
|
|||||||
Reference in New Issue
Block a user