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

Commit

Permalink
ci: action: Create the proj version using the ci script
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Polyakov <[email protected]>
  • Loading branch information
maxpoliak committed Oct 29, 2021
1 parent 607190a commit 79e4480
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/action-build-all-i386.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
VERSION: unknown
RTEMS_ARCH: i386
RTEMS_BSP: pc386

jobs:
build-all-components:
Expand All @@ -31,22 +33,18 @@ jobs:
- name: 'Step 3: Generating locales'
run: sudo localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
- name: 'Step 4: Make preparations'
run: ./preparations.sh
- name: 'Step 5: Generate the project version'
run: |
pversion=$(bash ./ci/ci-generate-version.sh --branch ${{ github.head_ref }})
./preparations.sh
pversion=$(bash ./ci/ci-generate-version.sh --arch ${{ env.RTEMS_ARCH }} --bsp ${{ env.RTEMS_BSP }} --branch ${{ github.head_ref }})
echo ${pversion}
- name: 'Step 6: Build cross-tools'
echo "::set-env name=VERSION::$pversion"
- name: 'Step 5: Build cross-tools'
run: ./build.sh cross
- name: 'Step 7: Build RTEMS'
- name: 'Step 6: Build RTEMS'
run: ./build.sh rtems
- name: 'Step 8: Build application'
run: |
./build.sh
version=$(basename *.tar.gz .tar.gz)
echo $version
echo "::set-env name=VERSION::$version"
- name: 'Step 9: Upload artifact with the result exe image'
- name: 'Step 7: Build application'
run: ./build.sh
- name: 'Step 8: Upload artifact with the result exe image'
uses: actions/upload-artifact@v2
with:
name: '${{ env.VERSION }}-exe-artifact'
Expand All @@ -62,7 +60,11 @@ jobs:
submodules: true
fetch-depth: 0
- name: 'Step 2: Make preparations'
run: ./preparations.sh
run: |
./preparations.sh
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"
- name: 'Step 3: Dowmload artifact with the exe image'
uses: actions/download-artifact@v2
with:
Expand All @@ -87,7 +89,11 @@ jobs:
submodules: true
fetch-depth: 0
- name: 'Step 2: Make preparations'
run: ./preparations.sh
run: |
./preparations.sh
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"
- name: 'Step 3: Install QEMU'
run: |
sudo apt-get update
Expand Down

0 comments on commit 79e4480

Please sign in to comment.