Skip to content

Commit d528bca

Browse files
committed
fix path and release
1 parent 0c82dd3 commit d528bca

File tree

1 file changed

+15
-30
lines changed

1 file changed

+15
-30
lines changed

.github/workflows/parallel_build.yaml

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
run: |
2424
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
2525
- name: Build Libs for ${{ matrix.target }}
26-
run: bash ./build.sh -e -t ${{ matrix.target }}
26+
run: |
27+
bash ./build.sh -e -t ${{ matrix.target }}
28+
mv release-info.txt out/framework-arduinoespressif32
2729
- name: Upload artifacts for ${{ matrix.target }}
2830
uses: actions/upload-artifact@v4
2931
with:
@@ -63,7 +65,7 @@ jobs:
6365
- name: Download build artifacts
6466
uses: actions/download-artifact@v4
6567
with:
66-
path: out
68+
path: framework-arduinoespressif32
6769
pattern: artifacts-*
6870
merge-multiple: true
6971
- name: Download slave firmware
@@ -77,41 +79,24 @@ jobs:
7779
ls -la
7880
echo "Listing slave_firmware directory:"
7981
ls -la slave_firmware/ || echo "slave_firmware directory not found"
80-
echo "Listing out directory:"
81-
ls -la out/ || echo "out directory not found"
82+
echo "Listing framework-arduinoespressif32 directory:"
83+
ls -la framework-arduinoespressif32/ || echo "framework-arduinoespressif32 directory not found"
8284
# Integrate slave firmware directly
83-
mkdir -p out/framework-arduinoespressif32/tools/slave_firmware
84-
cp -r slave_firmware/* out/framework-arduinoespressif32/tools/slave_firmware/
85+
mkdir -p framework-arduinoespressif32/tools/slave_firmware
86+
cp -r slave_firmware/* framework-arduinoespressif32/tools/slave_firmware/
8587
# Create final framework ZIP
86-
(cd dist && zip -qr framework-arduinoespressif32.zip framework-arduinoespressif32)
88+
cd framework-arduinoespressif32
89+
mv release-info.txt ..
90+
zip -qr framework-arduinoespressif32.zip framework-arduinoespressif32
8791
88-
- name: Upload framework artifact
89-
uses: actions/upload-artifact@v4
90-
with:
91-
name: framework
92-
path: |
93-
dist/framework*
94-
dist/release-info.txt
95-
96-
release_framework:
97-
name: Release Framework
98-
needs: combine-artifacts
99-
runs-on: ubuntu-latest
100-
steps:
101-
- uses: actions/checkout@v4
102-
- name: Download complete framework
103-
uses: actions/download-artifact@v4
104-
with:
105-
name: framework
106-
path: dist
107-
- name: Release
92+
- name: Release fraamework-arduinoespressif32
10893
uses: jason2866/[email protected]
10994
with:
11095
tag_name: ${{ github.run_number }}
111-
body_path: dist/release-info.txt
96+
body_path: release-info.txt
11297
prerelease: true
11398
files: |
114-
dist/framework*
115-
dist/release-info.txt
99+
framework-arduinoespressif32/framework*.zip
100+
release-info.txt
116101
env:
117102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)