Skip to content

Commit

Permalink
ci: carbonix_build.yml add condition to skip build on labeled PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
loki077 committed Dec 16, 2024
1 parent f843aa3 commit 437c6ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ jobs:

build-periph:
runs-on: ubuntu-22.04
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
needs: setup-s3-path
container: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:v0.1.3
strategy:
Expand Down Expand Up @@ -247,6 +248,7 @@ jobs:
path: output/

collect-aircraft-config-files:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
runs-on: ubuntu-22.04
needs: build-periph
outputs:
Expand All @@ -265,6 +267,7 @@ jobs:
echo "aircraft-config-files=$xml_files" >> $GITHUB_OUTPUT
process-ac:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
runs-on: ubuntu-22.04
needs: [collect-aircraft-config-files, setup-s3-path]
container: ardupilot/ardupilot-dev-${{ matrix.toolchain }}:v0.1.3
Expand Down Expand Up @@ -336,6 +339,7 @@ jobs:
build-sitl:
runs-on: 'windows-latest'
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
needs: setup-s3-path
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -418,7 +422,7 @@ jobs:
path: artifacts
retention-days: 90

- name: Download Artifacts
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: temp
Expand All @@ -429,7 +433,7 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Upload artifacts to S3
shell: pwsh
run: |
Expand Down

0 comments on commit 437c6ec

Please sign in to comment.