Skip to content

Commit

Permalink
feat: Update release workflow to upload image artifact
Browse files Browse the repository at this point in the history
Add a step to extract and upload the image artifact for debugging
purposes. Now, the workflow uploads the image file instead of the elf
file. Also, commented out uploading elf file for now.
  • Loading branch information
25077667 committed May 17, 2024
1 parent 1922e74 commit 2c78f08
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,20 @@ jobs:
mkdir -p ${{ matrix.copy_artifact_dest }}
- name: Extract Artifact from output image
run: |
set my_cwd=$(pwd)
mkdir -p ${{ runner.temp }}/mount
mount ${{ steps.arm_runner_install.outputs.image }} ${{ runner.temp }}/mount
# debugging purpose, we upload image to artifacts
mkdir -p ./release
cp -r ${{ runner.temp }}/mount ./release
cp ${{ steps.arm_runner_install.outputs.image }} cg-${{ matrix.arch }}.img
- name: Upload Artifact (ARM)
uses: actions/upload-artifact@v4
with:
name: release/cg-${{ matrix.arch }}.elf
path: release/cg-${{ matrix.arch }}.elf
name: cg-${{ matrix.arch }}.img
path: cg-${{ matrix.arch }}.img

# - name: Upload Artifact (ARM)
# uses: actions/upload-artifact@v4
# with:
# name: release/cg-${{ matrix.arch }}.elf
# path: release/cg-${{ matrix.arch }}.elf

release:
needs: [build, build_arm]
Expand Down

0 comments on commit 2c78f08

Please sign in to comment.