diff --git a/.github/actions/kas-build/Dockerfile b/.github/actions/kas-build/Dockerfile deleted file mode 100644 index 8ae5f7d..0000000 --- a/.github/actions/kas-build/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM ghcr.io/pantacor/kas/kas:next-v1 - -COPY entrypoint.sh /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/.github/actions/kas-build/action.yml b/.github/actions/kas-build/action.yml deleted file mode 100644 index da9b000..0000000 --- a/.github/actions/kas-build/action.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: 'Build Kas' -description: 'Build a KAS target' -inputs: - target: # id of input - description: 'target' - required: false - command: # command - description: 'command' - required: false - config-dir: # command - description: 'bitbake arguments' - required: false - bitbake-args: # command - description: 'bitbake arguments' - required: false -outputs: - time: # id of output - description: 'The time we greeted you' -runs: - using: 'docker' - image: 'Dockerfile' - env: - KAS_BUILD_ACTION_CONFIG_DIR: ${{ inputs.config-dir }} - KAS_BUILD_ACTION_TARGET: ${{ inputs.target }} - KAS_BUILD_ACTION_COMMAND: ${{ inputs.command }} - KAS_BUILD_ACTION_BBARGS: ${{ inputs.bitbake-args }} - diff --git a/.github/actions/kas-build/entrypoint.sh b/.github/actions/kas-build/entrypoint.sh deleted file mode 100755 index 215a2cf..0000000 --- a/.github/actions/kas-build/entrypoint.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -set -xe - -KAS_BUILD_ACTION_CONFIG_DIR=${KAS_BUILD_ACTION_CONFIG_DIR:-kas-build.configs/} -KAS_BUILD_ACTION_TARGET=${KAS_BUILD_ACTION_TARGET} -KAS_BUILD_ACTION_COMMAND=${KAS_BUILD_ACTION_COMMAND} -KAS_BUILD_ACTION_BBARGS=${KAS_BUILD_ACTION_BBARGS:+ -- $KAS_BUILD_ACTION_BBARGS} - -echo Target: $KAS_BUILD_ACTION_TARGET -echo Command: $KAS_BUILD_ACTION_COMMAND -echo Config-Dir: $KAS_BUILD_ACTION_CONFIG_DIR -echo BBARGS: $KAS_BUILD_ACTION_BBARGS - -echo WORKSPACE: -ls -la $GITHUB_WORKSPACE -echo workspace '*' -ls -la * - -sudo chown -R `id -u`:`id -g` . - -err="" -for c in ${KAS_BUILD_ACTION_CONFIG_DIR}/*.yaml; do - echo "Building $c" - set +e - if kas build \ - ${KAS_BUILD_ACTION_TARGET:+--target $KAS_BUILD_ACTION_TARGET} \ - ${KAS_BUILD_ACTION_COMMAND:+--cmd $KAS_BUILD_ACTION_COMMAND} \ - $c \ - ${KAS_BUILD_ACTION_BBARGS}; then - res=$? - if test $res -ne 0; then - err="${err:+$err $res}${err:-$res}" - fi - fi -done - -if test -n "$err"; then - echo "Error failed with codes: $err" - exit 1 -fi -