Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
loki077 committed Dec 30, 2024
1 parent e6c4dfd commit 874d662
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ jobs:
- name: Collect XML files
id: collect
run: |
xml_files=$(find libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/aircraft_configuration -name "*.xml" -print0 | xargs -0 echo | tr -d '\n' | jq -R -s -c 'split(" ")')
xml_files=$(find libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/aircraft_configuration -name "*.xml" -print0 | \
xargs -0 -n 1 basename | \
sed 's/.xml$//' | \
jq -R -s -c 'split("\n")[:-1]')
echo "aircraft-config-files=$xml_files" >> $GITHUB_OUTPUT
process-ac:
Expand Down Expand Up @@ -317,7 +320,7 @@ jobs:

- name: Run aircraft_config.py
run: |
python Tools/Carbonix_scripts/aircraft_config.py ${{ matrix.xml_file }} ${{ env.commit_id }}
python Tools/Carbonix_scripts/aircraft_config.py "libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/aircraft_configuration/${{ matrix.xml_file }}.xml" "${{ env.commit_id }}"
ls -la final-output/*/ || echo "No files found"
- name: Install AWS CLI
Expand All @@ -341,22 +344,11 @@ jobs:
echo "Uploading Artifacts to: $PATH_TO_S3"
aws s3 cp final-output/ $PATH_TO_S3 --recursive
- name: Extract file name from xml_file
id: extract_filename
run: |
FILE_NAME=$(basename "${{ matrix.xml_file }}" .xml)
echo "file_name=$FILE_NAME" >> $GITHUB_ENV
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: output-ac-${{ steps.extract_filename.outputs.file_name }}
name: ${{ matrix.xml_file }}
path: final-output/
retention-days: 15
if-no-files-found: warn
compression-level: 6
overwrite: false
include-hidden-files: false

build-sitl:
runs-on: 'windows-latest'
Expand Down

0 comments on commit 874d662

Please sign in to comment.