From f02686a8145e608a852daa1f13293e43759530a0 Mon Sep 17 00:00:00 2001 From: Suhaas Joshi Date: Tue, 12 Nov 2024 10:28:43 +0530 Subject: [PATCH] Actions: Update output tar name to look for Since we are now appending the BSP version in image's/tar's names, Github Actions also needs to be updated to work with a file which has the BSP version included in it. So update Github Actions to work with the new naming scheme. Signed-off-by: Suhaas Joshi --- .github/workflows/Build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 946829f..04c47a2 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-latest outputs: builds: ${{ steps.prepare-builds.outputs.builds }} + builds_out: ${{ steps.prepare-builds.outputs.builds_out }} steps: - name: Checkout uses: actions/checkout@v3 @@ -23,6 +24,12 @@ jobs: run: | pip3 install toml-cli builds=($(toml get builds --toml-path ./builds.toml | tr -d "[],'")) + builds_out=() + for build in ${builds[@]} ; do + distro_codename=($(toml get ${build}.distro_codename --toml-path ./builds.toml)) + bsp_version=($(toml get ${distro_codename}.bsp_version --toml-path ./configs/bsp_sources.toml)) + builds_out+=("${build}-${bsp_version}") + done output_string="[" for build in ${builds[@]} do @@ -69,11 +76,11 @@ jobs: mkdir -p build sudo ./build.sh ${{ matrix.builds }} - - name: Upload ${{ matrix.builds }} + - name: Upload ${{ matrix.builds_out }} uses: actions/upload-artifact@v3.1.2 with: - path: build/${{ matrix.builds }}.tar.xz - name: ${{ matrix.builds }} + path: build/${{ matrix.builds_out }}.tar.xz + name: ${{ matrix.builds_out }} if-no-files-found: error - name: Upload ${{ matrix.builds }}.log