name: Build Archipelago ISO on: push: branches: [main] workflow_dispatch: jobs: build-iso: runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v4 - name: Build backend (release) run: | source ~/.cargo/env 2>/dev/null || true cargo build --release --manifest-path core/Cargo.toml - name: Install backend binary run: sudo cp core/target/release/archipelago /usr/local/bin/archipelago - name: Build frontend run: cd neode-ui && npm ci && npm run build - name: Build unbundled ISO run: | cd image-recipe sudo UNBUNDLED=1 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-unbundled-*.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-unbundled-${DATE}.iso" sudo chown 1000:1000 "/var/lib/archipelago/filebrowser/Builds/archipelago-unbundled-${DATE}.iso" echo "ISO copied: archipelago-unbundled-${DATE}.iso" fi