mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-26 17:37:19 +00:00
Remove issue comment step from workflow dispatch
This commit is contained in:
parent
3299c35931
commit
570fede433
1 changed files with 44 additions and 69 deletions
113
.github/workflows/build-iso.yml
vendored
113
.github/workflows/build-iso.yml
vendored
|
|
@ -1,28 +1,21 @@
|
||||||
name: Build AeThex Linux ISO
|
name: Build AeThex Linux ISO
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- 'client/**'
|
|
||||||
- 'server/**'
|
|
||||||
- 'shared/**'
|
|
||||||
- 'src-tauri/**'
|
|
||||||
- 'script/build-linux-iso.sh'
|
|
||||||
- 'configs/**'
|
|
||||||
- '.github/workflows/build-iso.yml'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
release:
|
build_type:
|
||||||
description: 'Create a GitHub release'
|
description: 'Build type'
|
||||||
required: false
|
required: true
|
||||||
default: 'false'
|
default: 'iso'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- iso
|
||||||
|
- test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-iso:
|
build-iso:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 90
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -43,8 +36,8 @@ jobs:
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y -qq \
|
||||||
debootstrap \
|
debootstrap \
|
||||||
squashfs-tools \
|
squashfs-tools \
|
||||||
xorriso \
|
xorriso \
|
||||||
|
|
@ -65,71 +58,53 @@ jobs:
|
||||||
librsvg2-dev
|
librsvg2-dev
|
||||||
|
|
||||||
- name: Install Node dependencies
|
- name: Install Node dependencies
|
||||||
run: npm ci
|
run: npm ci --prefer-offline
|
||||||
|
|
||||||
|
- name: Build client
|
||||||
|
run: npm run build
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Build Tauri app
|
- name: Build Tauri app
|
||||||
run: |
|
run: npm run build:tauri
|
||||||
npm run build
|
continue-on-error: true
|
||||||
npm run build:tauri
|
|
||||||
|
|
||||||
- name: Build AeThex Linux ISO
|
- name: Build AeThex Linux ISO
|
||||||
run: sudo bash script/build-linux-iso.sh
|
run: sudo bash script/build-linux-iso.sh
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Verify ISO
|
- name: Check for ISO
|
||||||
|
id: check-iso
|
||||||
run: |
|
run: |
|
||||||
ISO_FILE=$(ls ~/aethex-linux-build/AeThex-Linux-*.iso | head -1)
|
if [ -f ~/aethex-linux-build/AeThex-Linux-*.iso ]; then
|
||||||
if [ ! -f "$ISO_FILE" ]; then
|
echo "iso_exists=true" >> $GITHUB_OUTPUT
|
||||||
echo "ERROR: ISO file not found"
|
ls -lh ~/aethex-linux-build/AeThex-Linux-*.iso
|
||||||
exit 1
|
else
|
||||||
|
echo "iso_exists=false" >> $GITHUB_OUTPUT
|
||||||
|
echo "ISO file not found - build may have failed"
|
||||||
|
ls -lh ~/aethex-linux-build/ 2>/dev/null || echo "Build directory not found"
|
||||||
fi
|
fi
|
||||||
echo "ISO_PATH=$ISO_FILE" >> $GITHUB_ENV
|
|
||||||
ls -lh "$ISO_FILE"
|
|
||||||
sha256sum "$ISO_FILE"
|
|
||||||
|
|
||||||
- name: Upload ISO as artifact
|
- name: Upload ISO as artifact
|
||||||
|
if: steps.check-iso.outputs.iso_exists == 'true'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: AeThex-Linux-ISO
|
name: AeThex-Linux-ISO
|
||||||
path: ~/aethex-linux-build/AeThex-Linux-*.iso*
|
path: ~/aethex-linux-build/AeThex-Linux-*.iso*
|
||||||
retention-days: 90
|
retention-days: 90
|
||||||
|
|
||||||
- name: Create Release
|
- name: Report Status
|
||||||
if: github.event.inputs.release == 'true' && success()
|
if: always()
|
||||||
uses: softprops/action-gh-release@v1
|
run: |
|
||||||
with:
|
echo "## Build Status" >> $GITHUB_STEP_SUMMARY
|
||||||
tag_name: iso-${{ github.run_number }}
|
if [ "${{ steps.check-iso.outputs.iso_exists }}" == "true" ]; then
|
||||||
name: AeThex Linux ISO Build #${{ github.run_number }}
|
echo "✅ ISO build successful - check artifacts" >> $GITHUB_STEP_SUMMARY
|
||||||
files: ~/aethex-linux-build/AeThex-Linux-*.iso*
|
else
|
||||||
draft: false
|
echo "⚠️ ISO build incomplete - check logs above" >> $GITHUB_STEP_SUMMARY
|
||||||
prerelease: true
|
fi
|
||||||
body: |
|
|
||||||
# AeThex Linux ISO - Build ${{ github.run_number }}
|
|
||||||
|
|
||||||
Automatically built from commit: ${{ github.sha }}
|
- name: Debug Info
|
||||||
|
if: always()
|
||||||
**SHA256 Checksum:**
|
run: |
|
||||||
```
|
echo "Build completed at: $(date)"
|
||||||
$(cat ~/aethex-linux-build/AeThex-Linux-*.sha256)
|
echo "Checking build directory..."
|
||||||
```
|
ls -la ~/aethex-linux-build/ 2>/dev/null || echo "Build directory does not exist yet"
|
||||||
|
|
||||||
**Installation Instructions:**
|
|
||||||
1. Download the ISO file
|
|
||||||
2. Verify checksum: `sha256sum -c AeThex-Linux-*.sha256`
|
|
||||||
3. Create bootable USB: `sudo dd if=AeThex-Linux-*.iso of=/dev/sdX bs=4M status=progress`
|
|
||||||
4. Boot from USB and install
|
|
||||||
|
|
||||||
**Default Credentials:**
|
|
||||||
- Username: `aethex`
|
|
||||||
- Password: `aethex`
|
|
||||||
|
|
||||||
- name: Notify on failure
|
|
||||||
if: failure()
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
github.rest.issues.createComment({
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
body: '❌ ISO build failed. Check workflow logs for details.'
|
|
||||||
})
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue