chore: CI builds unbundled ISO only (with FileBrowser)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ed4a5470f9
commit
81a38d6824
@ -4,21 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
variant:
|
|
||||||
description: 'ISO variant to build'
|
|
||||||
required: false
|
|
||||||
default: 'both'
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- both
|
|
||||||
- bundled
|
|
||||||
- unbundled
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-backend:
|
build-iso:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -31,66 +21,6 @@ jobs:
|
|||||||
- name: Install backend binary
|
- name: Install backend binary
|
||||||
run: sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
run: sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
||||||
|
|
||||||
build-frontend:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build frontend
|
|
||||||
run: cd neode-ui && npm ci && npm run build
|
|
||||||
|
|
||||||
build-bundled-iso:
|
|
||||||
needs: [build-backend, build-frontend]
|
|
||||||
if: ${{ github.event.inputs.variant != 'unbundled' }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 45
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build backend
|
|
||||||
run: |
|
|
||||||
source ~/.cargo/env 2>/dev/null || true
|
|
||||||
cargo build --release --manifest-path core/Cargo.toml
|
|
||||||
sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
|
||||||
|
|
||||||
- name: Build frontend
|
|
||||||
run: cd neode-ui && npm ci && npm run build
|
|
||||||
|
|
||||||
- name: Build bundled ISO
|
|
||||||
run: |
|
|
||||||
cd image-recipe
|
|
||||||
sudo DEV_SERVER=localhost BUILD_FROM_SOURCE=0 ./build-auto-installer-iso.sh
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
|
|
||||||
- name: Copy to Builds folder
|
|
||||||
run: |
|
|
||||||
ISO=$(ls image-recipe/results/archipelago-installer-*.iso 2>/dev/null | head -1)
|
|
||||||
if [ -n "$ISO" ]; then
|
|
||||||
DATE=$(date +%Y%m%d-%H%M)
|
|
||||||
sudo cp "$ISO" "/var/lib/archipelago/filebrowser/Builds/archipelago-bundled-${DATE}.iso"
|
|
||||||
sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-bundled-${DATE}.iso"
|
|
||||||
echo "ISO copied to Builds: archipelago-bundled-${DATE}.iso"
|
|
||||||
fi
|
|
||||||
|
|
||||||
build-unbundled-iso:
|
|
||||||
needs: [build-backend, build-frontend]
|
|
||||||
if: ${{ github.event.inputs.variant != 'bundled' }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build backend
|
|
||||||
run: |
|
|
||||||
source ~/.cargo/env 2>/dev/null || true
|
|
||||||
cargo build --release --manifest-path core/Cargo.toml
|
|
||||||
sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: cd neode-ui && npm ci && npm run build
|
run: cd neode-ui && npm ci && npm run build
|
||||||
|
|
||||||
@ -108,5 +38,5 @@ jobs:
|
|||||||
DATE=$(date +%Y%m%d-%H%M)
|
DATE=$(date +%Y%m%d-%H%M)
|
||||||
sudo cp "$ISO" "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
sudo cp "$ISO" "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
||||||
sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso"
|
||||||
echo "ISO copied to Builds: archipelago-unbundled-${DATE}.iso"
|
echo "ISO copied: archipelago-unbundled-${DATE}.iso"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user