Skip to content

Add CI to build the audioreach-driver kernel modules - #97

Open
ffrancis123 wants to merge 1 commit into
AudioReach:masterfrom
ffrancis123:ci
Open

ffrancis123 wants to merge 1 commit into
AudioReach:masterfrom
ffrancis123:ci

Conversation

@ffrancis123

Copy link
Copy Markdown
Contributor

Add CI to build the audioreach-driver kernel modules, following the
setup in audioreach-graphmgr master.

  • pre_merge_build.yml runs on pull requests to master. It loads the
    build parameters, builds and processes the image with the
    audioreach-workflows master workflows, and filters the test matrix
    to the targets with testing enabled.
  • trigger_lava_on_success.yml starts the LAVA tests after a successful
    pre_merge_build run.
  • ci/build.sh prepares the SDK kernel with modules_prepare, builds the
    modules and copies the .ko files to build/.
  • ci/files_to_copy.sh copies the built modules into the rootfs
    lib/modules/*/updates directory.
  • ci/pre_build.sh fetches the SDK when it is not installed yet.
  • ci/build_options.txt is empty, as the modules need no configure
    options.

Signed-off-by: ffrancis ffrancis@qti.qualcomm.com

@ffrancis123
ffrancis123 requested review from a team November 11, 2026 06:45
Comment on lines +15 to +20
load_parameters:
uses: Audioreach/audioreach-workflows/.github/workflows/loading.yml@master
with:
event_name: ${{ github.event_name }}
pr_ref: ${{ github.event.pull_request.head.ref }}
pr_repo: ${{ github.event.pull_request.head.repo.full_name }}
Comment on lines +22 to +31
build:
needs: load_parameters
uses: Audioreach/audioreach-workflows/.github/workflows/build.yml@master
secrets: inherit
with:
build_args: ${{ needs.load_parameters.outputs.build_args }}
build_matrix: ${{ needs.load_parameters.outputs.build_matrix }}
event_name: ${{ github.event_name }}
pr_ref: ${{ github.event.pull_request.head.ref }}
pr_repo: ${{ github.event.pull_request.head.repo.full_name }}

build:
needs: load_parameters
uses: Audioreach/audioreach-workflows/.github/workflows/build.yml@master

process_image:
needs: [load_parameters, build]
uses: Audioreach/audioreach-workflows/.github/workflows/process_image.yml@master
Comment on lines +33 to +41
process_image:
needs: [load_parameters, build]
uses: Audioreach/audioreach-workflows/.github/workflows/process_image.yml@master
secrets: inherit
with:
event_name: ${{ github.event_name }}
build_matrix: ${{ needs.load_parameters.outputs.build_matrix }}
pr_ref: ${{ github.event.pull_request.head.ref }}
pr_repo: ${{ github.event.pull_request.head.repo.full_name }}

trigger_lava:
needs: prepare_matrix
uses: Audioreach/audioreach-workflows/.github/workflows/test.yml@master
build:
needs: load_parameters
uses: Audioreach/audioreach-workflows/.github/workflows/build.yml@master
secrets: inherit
process_image:
needs: [load_parameters, build]
uses: Audioreach/audioreach-workflows/.github/workflows/process_image.yml@master
secrets: inherit
trigger_lava:
needs: prepare_matrix
uses: Audioreach/audioreach-workflows/.github/workflows/test.yml@master
secrets: inherit
Add the pre_merge_build and trigger_lava_on_success workflows, using
the audioreach-workflows master workflows as audioreach-graphmgr does.

ci/build.sh prepares the SDK kernel with modules_prepare, builds the
modules and copies the .ko files to build/. ci/files_to_copy.sh puts
them in the rootfs lib/modules/*/updates directory. pre_build.sh
fetches the SDK when it is not installed yet.

Pass the build matrix to the filter step through an environment
variable, and give the LAVA trigger workflow read-only permissions
except for the job that calls the test workflow.

Signed-off-by: ffrancis <ffrancis@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants