This issue asks to apply GitHub Actions Android hardware acceleration guidance to the release workflow and ensure Linux release artifacts build correctly across architectures.
-
What changed
- Updated
.github/workflows/release.yml in the android job to configure KVM device permissions via udev on ubuntu-latest runners.
- Kept the existing
fyne-cross android ... build and artifact flow unchanged.
- Updated release workflow runner labels to supported GitHub-hosted values (replacing invalid
ubuntu-slim usage).
- Updated the Linux build matrix to produce both whisper and non-whisper artifacts for:
- Routed
linux/arm64 matrix entries to an ARM64 runner (ubuntu-24.04-arm) so CGO/whisper builds are compiled for the correct architecture.
-
Why this is in scope
- Aligns the Android release workflow with GitHub’s documented Linux runner setup for Android hardware acceleration.
- Addresses release workflow correctness issues introduced during matrix expansion.
- Ensures requested artifact coverage (whisper + non-whisper for amd64 and arm64) is produced reliably.
-
Workflow snippet
- name:Enable KVM for Android hardware accelerationrun:| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
build:runs-on:${{ matrix.runner }}strategy:matrix:include:- goos:linuxgoarch:amd64cgo:"1"tags:"whisper"whisper:truerunner:ubuntu-latest- goos:linuxgoarch:amd64cgo:"0"tags:""whisper:falserunner:ubuntu-latest- goos:linuxgoarch:arm64cgo:"1"tags:"whisper"whisper:truerunner:ubuntu-24.04-arm- goos:linuxgoarch:arm64cgo:"0"tags:""whisper:falserunner:ubuntu-24.04-arm
Original prompt
This section details on the original issue you should resolve
<issue_title>Add hardware acceleration for Androd build</issue_title>
<issue_description>Look up the documentation on how to add hardware acceleration for Android builds in the github action we use for release. Supposedly it results in faster, cheaper builds. Implement that.</issue_description>
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.
This issue asks to apply GitHub Actions Android hardware acceleration guidance to the release workflow and ensure Linux release artifacts build correctly across architectures.
- **What changed**
- Updated `.github/workflows/release.yml` in the `android` job to configure KVM device permissions via udev on `ubuntu-latest` runners.
- Kept the existing `fyne-cross android ...` build and artifact flow unchanged.
- Updated release workflow runner labels to supported GitHub-hosted values (replacing invalid `ubuntu-slim` usage).
- Updated the Linux build matrix to produce **both whisper and non-whisper** artifacts for:
- `linux/amd64`
- `linux/arm64`
- Routed `linux/arm64` matrix entries to an ARM64 runner (`ubuntu-24.04-arm`) so CGO/whisper builds are compiled for the correct architecture.
- **Why this is in scope**
- Aligns the Android release workflow with GitHub’s documented Linux runner setup for Android hardware acceleration.
- Addresses release workflow correctness issues introduced during matrix expansion.
- Ensures requested artifact coverage (whisper + non-whisper for amd64 and arm64) is produced reliably.
- **Workflow snippet**
```yaml
- name: Enable KVM for Android hardware acceleration
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
```
```yaml
build:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- goos: linux
goarch: amd64
cgo: "1"
tags: "whisper"
whisper: true
runner: ubuntu-latest
- goos: linux
goarch: amd64
cgo: "0"
tags: ""
whisper: false
runner: ubuntu-latest
- goos: linux
goarch: arm64
cgo: "1"
tags: "whisper"
whisper: true
runner: ubuntu-24.04-arm
- goos: linux
goarch: arm64
cgo: "0"
tags: ""
whisper: false
runner: ubuntu-24.04-arm
```
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Add hardware acceleration for Androd build</issue_title>
> <issue_description>Look up the documentation on how to add hardware acceleration for Android builds in the github action we use for release. Supposedly it results in faster, cheaper builds. Implement that.</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes peterwwillis/zop#17
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 Send tasks to Copilot coding agent from [Slack](https://gh.io/cca-slack-docs) and [Teams](https://gh.io/cca-teams-docs) to turn conversations into code. Copilot posts an update in your thread when it's finished.