flathub-infra / flatpak-github-actions

Build your Flatpak application using Github Actions
MIT License
7 stars 4 forks source link

Failed to execute #14

Open mathisloge opened 4 days ago

mathisloge commented 4 days ago

I wanted to use this repo instead of the original one, but as soon as I use this instead of the normal one I get the following failure:

Run flathub-infra/flatpak-github-actions/flatpak-builder@master
/usr/bin/docker exec  14d939cdfb712280934[16](https://github.com/mathisloge/photobox/actions/runs/11898105487/job/33154001738#step:4:17)7dade1f2e34274b5fe724e0330ca97f18c40333a237 sh -c "cat /etc/*release | grep ^ID"
No cache was found
node:events:497
      throw er; // Unhandled 'error' event
      ^
Error: spawn dbus-daemon ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:[19](https://github.com/mathisloge/photobox/actions/runs/11898105487/job/33154001738#step:4:20))
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn dbus-daemon',
  path: 'dbus-daemon',
  spawnargs: [ '--session', '--print-address' ]
}
Node.js v[20](https://github.com/mathisloge/photobox/actions/runs/11898105487/job/33154001738#step:4:21).13.1

Used it as this:

jobs:
  flatpak:
    name: "Flatpak"
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
      options: --privileged
    steps:
      - uses: actions/checkout@v4
      - uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
        with:
          bundle: app.flatpak
          manifest-path: de.my.app.Devel.yml
          cache-key: flatpak-builder-${{ github.sha }}
          run-tests: true
bbhtt commented 4 days ago

Looks like the dbus-daemon binary went missing from the image used. I've queued rebuilds with it, it will take some time (5-6 hours).

bbhtt commented 4 days ago

Should work when https://github.com/flathub-infra/flatpak-github-actions/actions/runs/11900590827/job/33161754850 finishes.