Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
ci: action: Show the action type in the names on some steps
Browse files Browse the repository at this point in the history
Change the Import or Build action type in the step names for RTEMS.
In the case when the tarball is imported, you need to set Import in the
name.

Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 29, 2021
1 parent 53564e7 commit 5a739ab
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/action-build-all-i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
VERSION: unknown
RTEMS_ARCH: i386
RTEMS_BSP: pc386
BUILD_OR_IMPORT: Build

jobs:
build-all-components:
Expand All @@ -38,14 +39,18 @@ jobs:
osversion=$(bash ./ci/ci-generate-version.sh rtems --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }})
echo ${osversion}
echo "::set-env name=VERSION::$osversion"
- name: 'Step 5: Build cross-tools ${{ env.RTEMS_ARCH }}/${{ env.RTEMS_BSP }}'
run: |
tarball_path=$(bash ci/ci-import-rtems-tarball.sh --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }})
[[ "${tarball_path}" == "does-not-exist" ]] && ./build.sh cross || tar -xvf ${tarball_path} -C rtems_rtos
- name: 'Step 6: Build RTEMS ${{ env.VERSION }}'
[[ "${tarball_path}" == "does-not-exist" ]] \
|| tar -xvf ${tarball_path} -C rtems_rtos; action_type='Import'; echo "::set-env name=BUILD_OR_IMPORT::$action_type"
- name: 'Step 5: ${{ env.BUILD_OR_IMPORT }} cross-tools ${{ env.RTEMS_ARCH }}/${{ env.RTEMS_BSP }}'
run: |
tarball_path=$(bash ci/ci-import-rtems-tarball.sh --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }})
[[ "${tarball_path}" == "does-not-exist" ]] && ./build.sh rtems || echo "Image building is not required"
action_type=${{ env.BUILD_OR_IMPORT }}
[[ "${action_type}" == "Build" ]] && ./build.sh cross || echo "GCC Cross Compiler files have been imported"
- name: 'Step 6: ${{ env.BUILD_OR_IMPORT }} RTEMS ${{ env.VERSION }}'
run: |
action_type=${{ env.BUILD_OR_IMPORT }}
[[ "${action_type}" == "Build" ]] && ./build.sh rtems || echo "RTEMS object files have been imported"
current_branch=${{ github.head_ref }}
[[ -z $current_branch ]] || branch_param="--branch $current_branch"
pversion=$(bash ./ci/ci-generate-version.sh --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }} $branch_param)
Expand Down

0 comments on commit 5a739ab

Please sign in to comment.