Skip to content

Generate ISO image #102

Generate ISO image

Generate ISO image #102

Workflow file for this run

name: Generate ISO image
on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:
pull_request:
types: [opened, reopened]
jobs:
geniso:
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64, riscv64]
variant: [liveimage-desktop, liveimage-standard, tarball]
exclude:
- arch: riscv64
variant: liveimage-desktop
- arch: riscv64
variant: liveimage-standard
include:
- arch: x86_64
debarch: amd64
- arch: aarch64
debarch: arm64
- arch: riscv64
debarch: riscv64
runs-on: ubuntu-24.04
name: Generate ISO for ${{ matrix.variant }} - ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.arch }}
image: 'tonistiigi/binfmt:qemu-v8.1.5'
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y wget dosfstools arch-install-scripts sudo pacman-package-manager xorriso arch-install-scripts squashfs-tools systemd-container
- name: Build ISO for ${{ matrix.variant }} - ${{ matrix.arch }}
run: |
./gen.sh ${{ matrix.variant }} ${{ matrix.arch }}
- name: Check build Results
id: buildresult
run: |
ls results/ | grep -v .sha256
ls results/ | grep .sha256
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: eweos-${{ matrix.arch }}-${{ matrix.variant }}
path: results/
compression-level: 0
- name: Upload Cloudflare R2
uses: ryand56/r2-upload-action@latest
if: github.event_name != 'pull_request'
with:
r2-account-id: ${{ secrets.CF_IMG_R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.CF_IMG_R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.CF_IMG_R2_SECRET_ACCESS_KEY }}
r2-bucket: ewe
source-dir: results
destination-dir: ./eweos-images/