Skip to content

Commit

Permalink
Split actions upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSchinazi committed Aug 7, 2024
1 parent 4098326 commit 904e19d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/jazzlights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,32 @@ jobs:
echo "binaries_dir=${{ runner.temp }}/binaries" >> "$GITHUB_ENV"
- name: PlatformIO Build Merged Vest Binary
run: MERGED_BIN_PATH="${binaries_dir}/vest.bin" pio run -t mergebin -e vest
- name: Upload Merged Vest Binary as Artifact
uses: actions/upload-artifact@v4
with:
name: merged-binary-vest
path: "${{ runner.temp }}/binaries/vest.bin"
- name: PlatformIO Build Merged Vest S3 Binary
run: MERGED_BIN_PATH="${binaries_dir}/vest_s3.bin" pio run -t mergebin -e vest_s3
- name: Upload Merged Vest S3 Binary as Artifact
uses: actions/upload-artifact@v4
with:
name: merged-binary-vest_s3
path: "${{ runner.temp }}/binaries/vest_s3.bin"
- name: PlatformIO Build Merged Shoe Binary
run: MERGED_BIN_PATH="${binaries_dir}/shoe.bin" pio run -t mergebin -e shoe
- name: Upload Merged Shoe Binary as Artifact
uses: actions/upload-artifact@v4
with:
name: merged-binary-shoe
path: "${{ runner.temp }}/binaries/shoe.bin"
- name: PlatformIO Build Merged Hat Binary
run: MERGED_BIN_PATH="${binaries_dir}/hat.bin" pio run -t mergebin -e hat
- name: Upload Merged Binaries as Artifact
- name: Upload Merged Hat Binary as Artifact
uses: actions/upload-artifact@v4
with:
name: merged-binaries
path: "${{ runner.temp }}/binaries"
name: merged-binary-hat
path: "${{ runner.temp }}/binaries/hat.bin"

pages:
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -166,8 +181,9 @@ jobs:
- name: Download Binaries to Site Directory
uses: actions/download-artifact@v4
with:
name: merged-binaries
pattern: merged-binary-*
path: "${{ runner.temp }}/site-upload/flash/"
merge-multiple: true
- run: ls -l "${upload_dir}/flash/"
- run: find "${upload_dir}/flash/"
- name: Upload Pages
Expand Down

0 comments on commit 904e19d

Please sign in to comment.