Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ inputs:
required: true
description: Docker image for build

build_matrix: # <-- added
required: true
type: string
description: JSON string for the build matrix


runs:
using: 'composite'
steps:
Expand All @@ -27,9 +21,11 @@ runs:
# Load the build arguments
set +x
export GITHUB_WORKSPACE="${{ github.workspace }}"
export SDK_NAME="${{ env.SDK_NAME }}"
[ -f "./${{ env.CONFIG_SCRIPT }}" ] && export CONFIG_SCRIPT="${{ env.CONFIG_SCRIPT }}"
[ -f "./${{ env.SYNC_SCRIPT }}" ] && source "./${{ env.SYNC_SCRIPT }}"
[ -f "./${{ env.APPLY_PATCH_SCRIPT }}" ] && source "./${{ env.APPLY_PATCH_SCRIPT }}"
[ -f "./${{ env.PREBUILD_SCRIPT }}" ] && source "./${{ env.PREBUILD_SCRIPT }}"

# Build inside a docker container
docker run \
Expand All @@ -40,6 +36,8 @@ runs:
-e GITHUB_WORKSPACE="${{ github.workspace }}" \
-e BUILD_ARGS="${{ env.BUILD_ARGS }}" \
-e BUILD_SCRIPT="${{ env.BUILD_SCRIPT }}" \
-e PREBUILD_SCRIPT="${{ env.PREBUILD_SCRIPT }}" \
-e SDK_NAME="${{ env.SDK_NAME }}" \
--privileged \
${{ inputs.docker_image }} \
bash -c '
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ on:
type: string
description: Required build arguments

build_matrix: # <-- added
build_matrix:
required: true
type: string
description: JSON string for the build matrix


build_script:
required: false
type: string
Expand Down Expand Up @@ -44,6 +43,13 @@ on:
description: Optional script to configure the build environment
# This script contains the repositories and patches information for the build

pre_build_script:
required: false
type: string
default: 'ci/pre_build.sh'
description: Optional script to run before the build step
# This script is used to perform any setup or configuration before the build step

event_name:
required: false
type: string
Expand Down Expand Up @@ -98,26 +104,6 @@ jobs:
pr_repo: ${{ inputs.pr_repo }}
base_ref: ${{ inputs.base_ref }}

- name: Pull SDK sh file
id: pull_sdk
uses: AudioReach/audioreach-workflows/.github/actions/aws-s3-exchanger@master
with:
s3_bucket: qli-prd-audior-gh-artifacts
download_filename: ${{ env.SDK_NAME }}
mode: download
location: AudioReach/meta-audioreach/post_merge_build

- name: Setup Directory Structure
run: mkdir -p install/tmp

- name: Run SDK Script
id: run_sdk
shell: bash
run: |
echo "Running SDK Script"
echo "./install" | ./${{ env.SDK_NAME }}
echo "SDK Script ran successfully"

- name: Build
id: build
uses: AudioReach/audioreach-workflows/.github/actions/build@master
Expand All @@ -129,6 +115,7 @@ jobs:
SYNC_SCRIPT: ${{ inputs.sync_script }}
APPLY_PATCH_SCRIPT: ${{ inputs.apply_patch_script }}
CONFIG_SCRIPT: ${{ inputs.config_script }}
PREBUILD_SCRIPT: ${{ inputs.pre_build_script }}

- name: Clean Up Workspace
if: always()
Expand Down
Loading