mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fix: correct platform extraction in ISO deploy and re-enable raspberrypi
The sed-based platform extraction was greedy, turning "x86_64" into "64". Replace with explicit platform list iteration. Exclude raspberrypi from deploy. Re-enable raspberrypi as a platform choice for builds.
This commit is contained in:
43
.github/workflows/startos-iso.yaml
vendored
43
.github/workflows/startos-iso.yaml
vendored
@@ -29,7 +29,7 @@ on:
|
|||||||
- aarch64
|
- aarch64
|
||||||
- aarch64-nonfree
|
- aarch64-nonfree
|
||||||
- aarch64-nvidia
|
- aarch64-nvidia
|
||||||
# - raspberrypi
|
- raspberrypi
|
||||||
- riscv64
|
- riscv64
|
||||||
- riscv64-nonfree
|
- riscv64-nonfree
|
||||||
deploy:
|
deploy:
|
||||||
@@ -296,6 +296,18 @@ jobs:
|
|||||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
echo "Version: $VERSION"
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
|
- name: Determine platforms
|
||||||
|
id: platforms
|
||||||
|
run: |
|
||||||
|
INPUT="${{ github.event.inputs.platform }}"
|
||||||
|
if [ "$INPUT" = "ALL" ]; then
|
||||||
|
PLATFORMS="x86_64 x86_64-nonfree x86_64-nvidia aarch64 aarch64-nonfree aarch64-nvidia riscv64 riscv64-nonfree"
|
||||||
|
else
|
||||||
|
PLATFORMS="$INPUT"
|
||||||
|
fi
|
||||||
|
echo "list=$PLATFORMS" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "Platforms: $PLATFORMS"
|
||||||
|
|
||||||
- name: Download squashfs artifacts
|
- name: Download squashfs artifacts
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
@@ -347,10 +359,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ steps.version.outputs.version }}"
|
VERSION="${{ steps.version.outputs.version }}"
|
||||||
cd artifacts
|
cd artifacts
|
||||||
for file in *.iso *.squashfs; do
|
for PLATFORM in ${{ steps.platforms.outputs.list }}; do
|
||||||
[ -f "$file" ] || continue
|
for file in *_${PLATFORM}.squashfs *_${PLATFORM}.iso; do
|
||||||
echo "Uploading $file..."
|
[ -f "$file" ] || continue
|
||||||
s3cmd put -P "$file" "${{ env.S3_BUCKET }}/v${VERSION}/$file"
|
echo "Uploading $file..."
|
||||||
|
s3cmd put -P "$file" "${{ env.S3_BUCKET }}/v${VERSION}/$file"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Register OS version
|
- name: Register OS version
|
||||||
@@ -363,13 +377,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ steps.version.outputs.version }}"
|
VERSION="${{ steps.version.outputs.version }}"
|
||||||
cd artifacts
|
cd artifacts
|
||||||
for file in *.squashfs *.iso; do
|
for PLATFORM in ${{ steps.platforms.outputs.list }}; do
|
||||||
[ -f "$file" ] || continue
|
for file in *_${PLATFORM}.squashfs *_${PLATFORM}.iso; do
|
||||||
PLATFORM=$(echo "$file" | sed 's/.*_\([^.]*\)\.\(squashfs\|iso\)$/\1/')
|
[ -f "$file" ] || continue
|
||||||
echo "Indexing $file for platform $PLATFORM..."
|
echo "Indexing $file for platform $PLATFORM..."
|
||||||
start-cli --registry="${{ env.REGISTRY }}" registry os asset add \
|
start-cli --registry="${{ env.REGISTRY }}" registry os asset add \
|
||||||
--platform="$PLATFORM" \
|
--platform="$PLATFORM" \
|
||||||
--version="$VERSION" \
|
--version="$VERSION" \
|
||||||
"$file" \
|
"$file" \
|
||||||
"${{ env.S3_CDN }}/v${VERSION}/$file"
|
"${{ env.S3_CDN }}/v${VERSION}/$file"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user