Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
7490047
feat(store): Add BigPEmu, MAME, PrimeHack and Ymir
FeralAI Aug 29, 2026
9f9a1b7
Merge branch 'armada-os:main' into feature/new-emulators
FeralAI Sep 6, 2026
328b5a9
fix(store): Add home paths to flatpak filesystem overrides
FeralAI Sep 6, 2026
765c716
feat(rp-flip2): add support for visionox variant
justradical Aug 27, 2026
743cd7f
feat(rp5): add support for visionox variant
JPyke3 Aug 29, 2026
6828a3f
Merge pull request #390 from JPyke3/fix-flip2-visionox
JPyke3 Sep 8, 2026
de2d5fb
feat(input): drop upstreamed controllers
justradical Sep 5, 2026
ca8eb5a
feat(device-quirks): add dinput mode to ayaneo gamepad quirk
justradical Sep 6, 2026
98ce921
fix(device-quirks): set ayaneo mode on KONKR devices
justradical Sep 7, 2026
f882432
fix(input): set controller type on boot even with no config present
justradical Sep 6, 2026
169be55
fix(input): add expected targets to type
justradical Sep 6, 2026
977defa
feat(device-quirks): add inputplumber target list
justradical Sep 8, 2026
92ad05d
Merge pull request #385 from justradical/controllers
justradical Sep 8, 2026
e5732ce
feat(recovery): boot time hotkey service
virtudude Sep 8, 2026
7d86477
feat(recovery): change desktop hotkey to select and fix splash
virtudude Sep 8, 2026
617ea2d
Merge pull request #393 from armada-os/boot-hotkeys
virtudude Sep 8, 2026
54848e7
feat(ci): publish preview disk images to R2
virtudude Sep 9, 2026
e62fd20
Merge pull request #395 from armada-os/preview-disk-images
virtudude Sep 9, 2026
b473d67
fix(ci): preserve PATH for nested disk build commands
virtudude Sep 9, 2026
ce5e0ee
Merge pull request #396 from armada-os/preview-build-fixes
virtudude Sep 9, 2026
a47821e
fix(ci): remove unnecessary dependency installs
virtudude Sep 9, 2026
679e9ed
Merge pull request #399 from armada-os/disk-image-deps
virtudude Sep 9, 2026
7784dc7
fix(ci): fix preview registry auth
virtudude Sep 9, 2026
249e21d
Merge pull request #401 from armada-os/fix-preview-registry-auth
virtudude Sep 9, 2026
67d0cc8
feat(ci): preview build index and downloads worker
virtudude Sep 9, 2026
546f046
Merge pull request #405 from armada-os/preview-download-page
virtudude Sep 9, 2026
e2d4988
feat(installer): rewrite internal installer with verified local copying
virtudude Sep 9, 2026
6c085af
fix(armada-control): restore Proton dropdown on Steam beta
virtudude Sep 10, 2026
46449f8
Merge pull request #407 from armada-os/fix-proton-selection
virtudude Sep 10, 2026
067af7c
feat(armada-control): add global Follow Steam option
virtudude Sep 10, 2026
56cadeb
Merge pull request #408 from armada-os/global-follow-steam
virtudude Sep 10, 2026
a07b4e3
Merge pull request #406 from armada-os/installer-rewrite
virtudude Sep 10, 2026
e72a9d1
chore(kernel): bump
JPyke3 Sep 10, 2026
07c9dcb
Merge pull request #414 from JPyke3/fix-visionox-panel-bump
JPyke3 Sep 10, 2026
b4de1d0
feat(packages): use pinned Steam client
virtudude Sep 10, 2026
160fda3
Merge pull request #415 from armada-os/steam-bootstrap
virtudude Sep 10, 2026
aeeb65d
fix(decky): wait for Steam initialization before compatibility queries
virtudude Sep 10, 2026
2e1cefa
Merge pull request #416 from armada-os/fix-decky-compat-startup
virtudude Sep 10, 2026
f292030
chore(mesa): bump mesa for qam fix
JPyke3 Sep 11, 2026
ee604c3
Merge pull request #417 from JPyke3/fix-qam-freeze
JPyke3 Sep 11, 2026
0d0255b
fix(sm8250): disable always on reg rp5/flip2
JPyke3 Sep 11, 2026
44ba915
Merge pull request #418 from JPyke3/fix-visionox-panel-dts
JPyke3 Sep 11, 2026
0b1fa6b
Feature | Add DP Audio Out to Odin 3 and KPFE (#368)
noahcdls Sep 11, 2026
b9dc28a
feat: add support for Ayaneo Pocket S 1K profile
gryoza Aug 25, 2026
a3fe638
chore(kernel): bump
JPyke3 Sep 11, 2026
1dbdfe5
Merge pull request #99 from gryoza/main
JPyke3 Sep 11, 2026
d2b5e8e
refactor(rgb): move rgb config from quirks to armada-rgb
JPyke3 Sep 11, 2026
6136365
chore(rgb): bump pkg
JPyke3 Sep 11, 2026
a9a38ba
Merge pull request #421 from JPyke3/chore-move-rgb-configs
JPyke3 Sep 11, 2026
4e07364
Update hifi conf
noahcdls Sep 12, 2026
055214c
Remove enale/disable sequence
noahcdls Sep 12, 2026
3061588
Merge pull request #341 from FeralAI/feature/new-emulators
JPyke3 Sep 12, 2026
d3f5e5c
chore(packages): bump packages for Thor Lite support
JPyke3 Sep 12, 2026
2d95f4f
feat(device): add AYN Thor Lite support
JPyke3 Sep 12, 2026
f185253
Merge pull request #424 from JPyke3/feat-thor-lite
JPyke3 Sep 12, 2026
500c270
Update konkr pfe hifi as well
noahcdls Sep 12, 2026
203cc95
Merge pull request #425 from noahcdls/fix-odin3-hifi-conf
JPyke3 Sep 12, 2026
51a873e
chore(pkgs): bump kernel and inputplumber
JPyke3 Sep 12, 2026
0ef1fdb
Merge pull request #427 from JPyke3/fix-thor-lite-controls
JPyke3 Sep 12, 2026
c5581e8
chore: sync with upstream armada-os (CONFLICTS — resolve manually)
github-actions[bot] Sep 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .github/scripts/publish-preview-index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#!/usr/bin/env python3

import datetime
import json
import os
import re
import subprocess
from pathlib import Path


IMAGE_KEY = re.compile(r"preview/armada-\d{8}(?:\.[0-9a-f]{7,40})?\.img\.gz")
KEEP_IMAGES = 5


def expired_keys(objects, current_key):
if not IMAGE_KEY.fullmatch(current_key):
raise ValueError("Current image is not a Preview disk image under preview/")

images = []
keys = {obj["Key"] for obj in objects}
nonempty_keys = {obj["Key"] for obj in objects if obj["Size"] > 0}
for obj in objects:
if IMAGE_KEY.fullmatch(obj["Key"]):
modified = datetime.datetime.fromisoformat(obj["LastModified"].replace("Z", "+00:00"))
images.append((modified, obj["Key"]))
if current_key not in nonempty_keys or current_key + ".sha256" not in nonempty_keys:
raise ValueError("Current image and checksum must exist before pruning")

images.sort(reverse=True)
retained = {current_key}
for _, key in images:
if key not in nonempty_keys or key + ".sha256" not in nonempty_keys:
continue
if len(retained) < KEEP_IMAGES:
retained.add(key)

expired = []
for _, key in images:
if key not in retained:
if key + ".sha256" in keys:
expired.append(key + ".sha256")
expired.append(key)
return expired


def main():
if os.environ.get("R2_PREFIX", "preview").strip("/") != "preview":
raise ValueError("Preview pruning is restricted to preview/")
endpoint = os.environ["R2_ENDPOINT_URL"]
bucket = os.environ["R2_BUCKET"]
current = json.loads(Path("output/current-build.json").read_text())
current_key = current["image"]["key"]
aws = ["aws", "--endpoint-url", endpoint, "s3api"]
listing = subprocess.check_output(
aws + ["list-objects-v2", "--bucket", bucket, "--prefix", "preview/", "--output", "json"],
text=True,
)
objects = json.loads(listing).get("Contents", [])
managed_keys = set()
for obj in objects:
key = obj["Key"]
if not IMAGE_KEY.fullmatch(key):
continue
details = json.loads(subprocess.check_output(
aws + ["head-object", "--bucket", bucket, "--key", key, "--output", "json"],
text=True,
))
if details.get("Metadata", {}).get("armada-preview") == "true":
managed_keys.update((key, key + ".sha256"))
managed_objects = [obj for obj in objects if obj["Key"] in managed_keys]
expired = expired_keys(managed_objects, current_key)

def read_object(key):
return subprocess.check_output(
["aws", "s3", "cp", f"s3://{bucket}/{key}", "-",
"--endpoint-url", endpoint, "--only-show-errors"], text=True,
)

keys = {obj["Key"] for obj in objects}
previous = []
if "preview/builds.json" in keys:
previous = json.loads(read_object("preview/builds.json"))["builds"]
known = {build["image"]["key"]: build for build in previous}
builds = [current]
for obj in sorted(managed_objects, key=lambda obj: obj["LastModified"], reverse=True):
key = obj["Key"]
if key not in known or key == current_key or key in expired:
continue
sha256 = read_object(key + ".sha256").split()[0]
if not re.fullmatch(r"[a-f0-9]{64}", sha256):
raise ValueError(f"Invalid checksum for {key}")
build = dict(known[key])
if build["image"]["sha256"] != sha256:
build["published_at"] = obj["LastModified"]
build["published_at"] = build["published_at"].replace("+00:00", "Z")
build["image"] = {**build["image"], "size": obj["Size"], "sha256": sha256}
builds.append(build)
index = {"channel": "preview", "latest": current["version"], "builds": builds}
Path("output/builds.json").write_text(json.dumps(index, indent=2) + "\n")
for key in expired:
subprocess.run(aws + ["delete-object", "--bucket", bucket, "--key", key], check=True)
print(f"Deleted s3://{bucket}/{key}")

subprocess.run(
["aws", "s3", "cp", "output/builds.json", f"s3://{bucket}/preview/builds.json",
"--endpoint-url", endpoint, "--content-type", "application/json",
"--cache-control", "no-store", "--only-show-errors"], check=True,
)

summary = os.environ.get("GITHUB_STEP_SUMMARY")
if summary:
with open(summary, "a") as output:
output.write(f"\nPreview retention: keep {KEEP_IMAGES} images; deleted {len(expired)} older objects.\n")


if __name__ == "__main__":
main()
185 changes: 174 additions & 11 deletions .github/workflows/build-disk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,37 @@ on:
description: "Optional custom container tag. Overrides the dropdown when set."
type: string
default: ""
workflow_call:
inputs:
tag:
type: string
default: testing
publish_r2:
type: boolean
default: false
image_digest:
type: string
default: ""
source_ref:
type: string
default: ""
secrets:
R2_ACCESS_KEY_ID:
required: false
R2_SECRET_ACCESS_KEY:
required: false

env:
IMAGE_NAME: ${{ github.event.repository.name }}
IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}"
BIB_IMAGE: "quay.io/centos-bootc/bootc-image-builder:latest"
R2_ENDPOINT_URL: ${{ vars.R2_ENDPOINT_URL }}
R2_BUCKET: ${{ vars.R2_BUCKET }}
R2_PREFIX: preview
R2_PUBLIC_URL: ${{ vars.R2_PUBLIC_URL }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
group: ${{ inputs.publish_r2 && 'preview-disk' || format('build-disk-{0}', github.ref || github.run_id) }}
cancel-in-progress: false

jobs:
Expand All @@ -33,26 +56,37 @@ jobs:
packages: read

steps:
- name: Check R2 configuration
if: inputs.publish_r2
env:
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
run: |
set -euo pipefail
for setting in R2_ENDPOINT_URL R2_BUCKET R2_ACCESS_KEY_ID R2_SECRET_ACCESS_KEY; do
if [ -z "${!setting}" ]; then
echo "::error::${setting} is not configured. Set it in repository Settings > Secrets and variables > Actions."
exit 1
fi
done

- name: Maximize build space
uses: ublue-os/remove-unwanted-software@cc0becac701cf642c8f0a6613bbdaf5dc36b259e # v9
with:
remove-codeql: true

- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.source_ref || github.sha }}

- name: Install dependencies
run: |
set -euxo pipefail
echo "IMAGE_NAME=${IMAGE_NAME,,}" >> "${GITHUB_ENV}"
echo "IMAGE_REGISTRY=${IMAGE_REGISTRY,,}" >> "${GITHUB_ENV}"
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
containernetworking-plugins \
curl \
jq \
pigz \
python3
sudo apt-get install -y --no-install-recommends containernetworking-plugins

- name: Check build recipes
uses: ublue-os/just-action@30ab4659369934b65b655bf8d2fa4ddd6547d384 # v3
Expand All @@ -78,20 +112,59 @@ jobs:
echo "tag=${tag}" >> "${GITHUB_OUTPUT}"

- name: Build Armada image
env:
ARMADA_IMAGE_DIGEST: ${{ inputs.image_digest }}
run: |
set -euxo pipefail
JUST_BIN=$(command -v just)
sudo git config --global --add safe.directory "${GITHUB_WORKSPACE}"
# Build the disk FROM the published container so the disk and the ghcr
# image are identical content and the installed system's bootc origin
# points at ghcr (so OTA works). The Justfile pulls the ref for BIB.
sudo "${JUST_BIN}" build-armada-image "${IMAGE_REGISTRY}/${IMAGE_NAME}" "${{ steps.tag.outputs.tag }}"
sudo env PATH="${PATH}" ARMADA_IMAGE_DIGEST="${ARMADA_IMAGE_DIGEST}" \
"${JUST_BIN}" build-armada-image "${IMAGE_REGISTRY}/${IMAGE_NAME}" "${{ steps.tag.outputs.tag }}"
sudo chown -R "$(id -u):$(id -g)" output
IMG=$(find output -maxdepth 1 -name 'armada-*.img.gz' -type f -print -quit)
sha256sum "${IMG}" > "${IMG}.sha256"
ls -lh "${IMG}" "${IMG}.sha256"

- name: Inspect disk source image
id: built_image
env:
EXPECTED_DIGEST: ${{ inputs.image_digest }}
CONTAINER_TAG: ${{ steps.tag.outputs.tag }}
PUBLISH_R2: ${{ inputs.publish_r2 }}
run: |
set -euo pipefail
inspection=$(sudo podman image inspect "${IMAGE_REGISTRY}/${IMAGE_NAME}:${CONTAINER_TAG}")
digest=$(jq -er '.[0].Digest' <<< "${inspection}")
if [ -n "${EXPECTED_DIGEST}" ] && [ "${digest}" != "${EXPECTED_DIGEST}" ]; then
echo "::error::Built image digest ${digest} does not match requested digest ${EXPECTED_DIGEST}."
exit 1
fi
revision=$(jq -r '.[0].Config.Labels["org.opencontainers.image.revision"] // empty' <<< "${inspection}")
if [ "${PUBLISH_R2}" = true ] && ! [[ "${revision}" =~ ^[a-f0-9]{40}$ ]]; then
echo "::error::Preview container has no valid source revision label."
exit 1
fi
echo "digest=${digest}" >> "${GITHUB_OUTPUT}"
echo "revision=${revision}" >> "${GITHUB_OUTPUT}"

- name: Prepare disk image upload
id: disk
run: |
set -euo pipefail
shopt -s nullglob
images=(output/armada-*.img.gz)
if [ "${#images[@]}" -ne 1 ] || [ ! -s "${images[0]}" ]; then
echo "::error::Expected exactly one nonempty disk image in output/."
exit 1
fi
image="${images[0]}"
filename="${image##*/}"
# Use the basename so sha256sum -c works beside the downloaded image.
(cd output && sha256sum "${filename}" > "${filename}.sha256")
echo "image=${image}" >> "${GITHUB_OUTPUT}"

- name: Upload disk image
if: ${{ !inputs.publish_r2 }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: armada-disk-image
Expand All @@ -102,3 +175,93 @@ jobs:
retention-days: 1
compression-level: 0
overwrite: true

- name: Publish disk image to R2
id: publish
if: inputs.publish_r2
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: auto
AWS_EC2_METADATA_DISABLED: "true"
AWS_REQUEST_CHECKSUM_CALCULATION: when_required
AWS_RESPONSE_CHECKSUM_VALIDATION: when_required
CONTAINER_TAG: ${{ steps.tag.outputs.tag }}
CONTAINER_DIGEST: ${{ steps.built_image.outputs.digest }}
BUILD_COMMIT: ${{ steps.built_image.outputs.revision }}
DISK_IMAGE: ${{ steps.disk.outputs.image }}
run: |
set -euo pipefail
image="${DISK_IMAGE}"
filename="${image##*/}"
prefix="${R2_PREFIX#/}"
prefix="${prefix%/}"

require_current_preview() {
current=$(skopeo inspect --no-creds --override-arch arm64 --format '{{.Digest}}' \
"docker://${IMAGE_REGISTRY}/${IMAGE_NAME}:testing")
if [ "${current}" != "${CONTAINER_DIGEST}" ]; then
echo "::error::Preview has advanced to ${current}; refusing to publish stale disk ${CONTAINER_DIGEST}."
exit 1
fi
}
require_current_preview

commit_title=$(git show -s --format=%s "${BUILD_COMMIT}")
# The high-level S3 command handles multipart uploads for large images.
aws configure set default.s3.multipart_chunksize 64MB
for file in "${image}" "${image}.sha256"; do
key="${prefix}/${file##*/}"
aws s3 cp "${file}" "s3://${R2_BUCKET}/${key}" \
--endpoint-url "${R2_ENDPOINT_URL}" \
--metadata armada-preview=true --cache-control no-store --only-show-errors
uploaded_size=$(aws s3api head-object \
--endpoint-url "${R2_ENDPOINT_URL}" \
--bucket "${R2_BUCKET}" --key "${key}" \
--query ContentLength --output text)
if [ "${uploaded_size}" != "$(stat -c %s "${file}")" ]; then
echo "::error::Uploaded size does not match ${file##*/}."
exit 1
fi
done

require_current_preview
version="${filename#armada-}"
version="${version%.img.gz}"
read -r image_sha256 checksum_filename < "${image}.sha256"
jq -n \
--arg version "${version}" \
--arg published_at "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--arg build_commit "${BUILD_COMMIT}" \
--arg build_commit_title "${commit_title}" \
--arg container "${IMAGE_REGISTRY}/${IMAGE_NAME}:${CONTAINER_TAG}" \
--arg digest "${CONTAINER_DIGEST}" \
--arg filename "${filename}" \
--arg key "${prefix}/${filename}" \
--arg public_url "${R2_PUBLIC_URL%/}" \
--arg sha256 "${image_sha256}" \
--argjson size "$(stat -c %s "${image}")" \
'{version: $version,
published_at: $published_at, build_commit: $build_commit, build_commit_title: $build_commit_title,
container: {reference: $container, digest: $digest},
image: {filename: $filename, key: $key, url: ($public_url + "/" + $key),
size: $size, sha256: $sha256},
checksum: {key: ($key + ".sha256"), url: ($public_url + "/" + $key + ".sha256")}}' \
> output/current-build.json
python3 .github/scripts/publish-preview-index.py

# Only advertise the download after both objects have been uploaded.
echo "image_key=${prefix}/${filename}" >> "${GITHUB_OUTPUT}"
echo "checksum_key=${prefix}/${filename}.sha256" >> "${GITHUB_OUTPUT}"
{
printf '### Disk image uploaded to R2\n\n'
printf 'Container: `%s/%s:%s`\n\n' "${IMAGE_REGISTRY}" "${IMAGE_NAME}" "${CONTAINER_TAG}"
printf 'Image: `s3://%s/%s/%s`\n\n' "${R2_BUCKET}" "${prefix}" "${filename}"
printf 'Checksum: `s3://%s/%s/%s.sha256`\n\n' "${R2_BUCKET}" "${prefix}" "${filename}"
if [ -n "${R2_PUBLIC_URL}" ]; then
printf '[Download image](%s/%s/%s) · [SHA-256](%s/%s/%s.sha256)\n' \
"${R2_PUBLIC_URL%/}" "${prefix}" "${filename}" \
"${R2_PUBLIC_URL%/}" "${prefix}" "${filename}"
printf '\n[Preview builds](%s/%s/builds.json)\n' "${R2_PUBLIC_URL%/}" "${prefix}"
fi
} >> "${GITHUB_STEP_SUMMARY}"
Loading