Skip to content

An action for Github Actions to verify the validity of an .eap package for Axis ACAP in CI/CD pipelines.

License

Notifications You must be signed in to change notification settings

fixedit-ai/test-eap-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Test eap action for Github Actions

An action for Github Actions to verify the validity of an .eap package for Axis ACAP in CI/CD pipelines. Use this after building an ACAP in your ci/cd pipelines to verify that the file was correctly build. The goal with the verification is not to verify the behaviour of the application, but rather to verify that it is correctly built and will be capable of running in a camera.

This action assumes the FixedIT CLI is installed, see the install-fixeditcli-action.

Example output from a job that fails when the application was not built for the expected architecture: cicd screenshot

Arguments

Most of the CLI arguments for the FixedIT CLI tool is exposed in this action, see the definition in the action.yml file. Note that you can also specify the arguments in a fixedit-manifest.json file.

Example

As an example, the following GitHub Actions CI/CD job will build the ACAP application with the build-eap-action. After the application is built the test-eap-action is used to validate the .eap file that was produced by the build.

name: Build hello world ACAP

on:
  push:

jobs:
  build:
    runs-on: ubuntu-24.04
    strategy:
      matrix:
        arch: ["armv7hf", "aarch64"]
    steps:
      - name: Checkout the code
        uses: actions/checkout@v4

      - name: Install FixedIT CLI and login
        uses: fixedit-ai/install-fixeditcli-action@v2
        with:
          token: ${{ secrets.FIXEDIT_TOKEN }}

      - name: Build ACAP application
        uses: fixedit-ai/build-eap-action@v2
        with:
          arch: ${{ matrix.arch }}
          dir: hello_world

      - name: Validate the content of the ACAP .eap file
        uses: fixedit-ai/test-eap-action@v2
        with:
          arch: ${{ matrix.arch }}
          app-path: "hello_world/*.eap"

Release notes

v2

  • Bumped the CLI to the new renamed fixeditcli. This action is compatible with fixedit-ai/install-fixeditcli-action v2 or later.
  • Added more CLI options as arguments to the action.

v1

First stable release using FApp CLI.

About

An action for Github Actions to verify the validity of an .eap package for Axis ACAP in CI/CD pipelines.

Resources

License

Stars

Watchers

Forks

Packages

No packages published