Skip to content

Commit

Permalink
Ci: carbonix_build zip build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
loki077 committed Dec 30, 2024
1 parent a895396 commit 8834b78
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ jobs:
echo "Uploading Artifacts to: $PATH_TO_S3"
aws s3 cp final-output/ $PATH_TO_S3 --recursive
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: output-ac-${{ matrix.xml_file }}
path: final-output/
retention-days: 15

build-sitl:
runs-on: 'windows-latest'
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
Expand Down Expand Up @@ -446,3 +453,32 @@ jobs:
$env:PATH_TO_S3 = '${{ needs.setup-s3-path.outputs.s3_path }}'
echo "Uploading to: $env:PATH_TO_S3"
aws s3 cp temp/ $env:PATH_TO_S3 --recursive
build-upload-zip:
runs-on: ubuntu-22.04
if: ${{ !contains(github.event.pull_request.labels.*.name, 'SKIP_BUILD') }}
needs: [build-periph, build-sitl, collect-aircraft-config-files, setup-s3-path]
steps:
- name: Create folder from s3_path
run: mkdir -p ${{ needs.setup-s3-path.outputs.s3_path }}

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: output-ac-*
path: ${{ needs.setup-s3-path.outputs.s3_path }}

- name: List downloaded files
run: ls -R ${{ needs.setup-s3-path.outputs.s3_path }}

- name: Zip the folder
run: |
cd ${{ needs.setup-s3-path.outputs.s3_path }}
zip -r ../artifact.zip .
- name: Upload zipped folder to artifacts
uses: actions/upload-artifact@v4
with:
name: zipped-artifacts
path: artifact.zip
retention-days: 15

0 comments on commit 8834b78

Please sign in to comment.