Skip to content

Commit f2efac3

Browse files
committed
fix(ci): point podman to Homebrew crun; start dbus-daemon in e2e-install
- Homebrew podman 5.x installs crun 1.26 but resolves the runtime via PATH, picking up system /usr/bin/crun (too old: 'unknown version specified'). Write ~/.config/containers/containers.conf with runtime = "/home/linuxbrew/.linuxbrew/bin/crun" immediately after brew install so all subsequent podman calls use the correct binary. - e2e-install: machine-id now exists but flatpak install fails with 'Cannot autolaunch D-Bus without X11 $DISPLAY'. Add dbus-daemon --system --fork to start the system bus before flatpak. Assisted-by: Claude Sonnet 4.6 via OpenCode
1 parent f3adce2 commit f2efac3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ jobs:
394394
run: |
395395
/home/linuxbrew/.linuxbrew/bin/brew install podman
396396
echo "/home/linuxbrew/.linuxbrew/bin" >> "$GITHUB_PATH"
397+
# Point podman to Homebrew's crun (system /usr/bin/crun is too old on ubuntu-24.04).
398+
mkdir -p ~/.config/containers
399+
printf '[engine]\nruntime = "/home/linuxbrew/.linuxbrew/bin/crun"\n' \
400+
> ~/.config/containers/containers.conf
397401
398402
- name: Enable user namespaces for rootless podman
399403
run: |
@@ -1056,10 +1060,11 @@ jobs:
10561060
flatpak remote-add --system --if-not-exists testhub \
10571061
oci+https://projectbluefin.github.io/testhub
10581062
1059-
- name: Ensure machine-id exists
1063+
- name: Ensure machine-id and system D-Bus exist
10601064
if: steps.arch-check.outputs.skip != 'true'
10611065
run: |
10621066
mkdir -p /var/lib/dbus && dbus-uuidgen | tee /var/lib/dbus/machine-id
1067+
dbus-daemon --system --fork
10631068
10641069
- name: Install ${{ matrix.app }}
10651070
if: steps.arch-check.outputs.skip != 'true'

0 commit comments

Comments
 (0)