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

Commit

Permalink
build.sh: Add the project version label to the artifact name
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 6b5209c commit aaadf80
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build-all-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ on:
release:
types: [created]

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

jobs:
build-all-components:
runs-on: ubuntu-latest
env:
VERSION: unknown
steps:
- name: 'Step 1: Install all packages'
run: sudo apt-get install -yy build-essential gcc g++ gdb git unzip pax bison flex texinfo unzip python3-dev libncurses5-dev zlib1g-dev python-dev curl locales && sudo apt-get clean all
Expand All @@ -25,16 +30,21 @@ jobs:
- name: 'Step 6: Build RTEMS'
run: ./build.sh rtems
- name: 'Step 7: Build application'
run: ./build.sh
run: |
./build.sh
version=$(basename *.tar.gz .tar.gz)
echo "::set-env name=VERSION::$version"
- name: 'Step 8: Upload artifact with the result exe image'
uses: actions/upload-artifact@v2
with:
name: 'rtems-ec-cli.exe'
path: rtems-ec-cli.exe
name: '${{ env.VERSION }}-exe-artifact'
path: ./*.exe
- name: 'Step 9: Creating a new bootable image'
run: dd if=/dev/zero of=boot-disk.img bs=512 count=32130 && sudo ./create-boot-image.sh --file boot-disk.img
run: |
dd if=/dev/zero of=boot-disk.img bs=512 count=32130
sudo ./create-boot-image.sh --file boot-disk.img
- name: 'Step 10: Upload artifact with the QEMU bootable image'
uses: actions/upload-artifact@v2
with:
name: 'boot-disk.img'
name: '${{ env.VERSION }}-boot-disk-img-artifact'
path: boot-disk.img

0 comments on commit aaadf80

Please sign in to comment.