-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,13 +24,20 @@ 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 | ||
output_string="${output_string}""\"${build}\"," | ||
done | ||
output_string="${output_string::-1}""]" | ||
echo "builds=${output_string}" >> $GITHUB_OUTPUT | ||
echo "::set-output name=builds_out::${builds_out}" | ||
# Job2: Actual build job | ||
build: | ||
|
@@ -69,11 +77,11 @@ jobs: | |
mkdir -p build | ||
sudo ./build.sh ${{ matrix.builds }} | ||
- name: Upload ${{ matrix.builds }} | ||
- name: Upload ${{ needs.prepare-build.outputs.builds_out }} | ||
uses: actions/[email protected] | ||
with: | ||
path: build/${{ matrix.builds }}.tar.xz | ||
name: ${{ matrix.builds }} | ||
path: build/${{ needs.prepare-build.outputs.builds_out }}.tar.xz | ||
name: ${{ needs.prepare-build.outputs.builds_out }} | ||
if-no-files-found: error | ||
|
||
- name: Upload ${{ matrix.builds }}.log | ||
|