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

Commit

Permalink
ci: action: Build a cross compiler and RTEMS only when ...
Browse files Browse the repository at this point in the history
...there is no external archive with RTEMS OS object files. This will
reduce the testing time in github workflow

Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 29, 2021
1 parent 08fc804 commit 73b64e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/action-build-all-i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ jobs:
echo ${osversion}
echo "::set-env name=VERSION::$osversion"
- name: 'Step 5: Build cross-tools ${{ env.RTEMS_ARCH }}/${{ env.RTEMS_BSP }}'
run: ./build.sh cross
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 }}'
run: |
./build.sh rtems
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"
pversion=$(bash ./ci/ci-generate-version.sh --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }} --branch ${{ github.head_ref }})
echo ${pversion}
echo "::set-env name=VERSION::$pversion"
Expand Down

0 comments on commit 73b64e7

Please sign in to comment.