Skip to content

Commit

Permalink
Actions: Update output tar name to look for
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jsuhaas22 committed Nov 12, 2024
1 parent 87d6e67 commit c0ec61e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ 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[@]}
for build in ${builds_out[@]}
do
output_string="${output_string}""\"${build}\","
done
Expand Down Expand Up @@ -69,14 +75,14 @@ jobs:
mkdir -p build
sudo ./build.sh ${{ matrix.builds }}
- name: Upload ${{ matrix.builds }}
- name: Upload ${{ matrix.builds_out }}
uses: actions/[email protected]
with:
path: build/${{ matrix.builds }}.tar.xz
name: ${{ matrix.builds }}
if-no-files-found: error

- name: Upload ${{ matrix.builds }}.log
- name: Upload ${{ matrix.builds_out }}.log
uses: actions/[email protected]
with:
path: logs/${{ matrix.builds }}.log
Expand Down

0 comments on commit c0ec61e

Please sign in to comment.