From fb4f9cf612f56ebe83874d849d05e9375933d33e Mon Sep 17 00:00:00 2001 From: RobertK66 Date: Wed, 29 Nov 2023 09:18:54 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15dc885..da531f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,8 @@ jobs: - id: create_ver name: Set Variables run: | - THE_SWVERSION=$(printf 'Ver_%.8s' "${{ github.sha }}" ) - MY_SWVERSION=$(printf 'My_%.10s' "$GITHUB_REF_NAME" ) + THE_SWVERSION=$(printf '%.8s' "${{ github.sha }}" ) + MY_SWVERSION=$(printf '%.10s' "$GITHUB_REF_NAME" ) #echo "THE_SWVERSION=$THE_SWVERSION" >> $GITHUB_ENV #echo "MY_SWVERSION=$MY_SWVERSION" >> $GITHUB_ENV echo "THE_SWVERSION=$THE_SWVERSION" >> "$GITHUB_OUTPUT" @@ -42,15 +42,22 @@ jobs: board: BA_OM13085_EM2T steps: - env: - OBC_VERSION: ${{needs.prepBuild.outputs.obcVersion}} - OBC_VERSION_2: ${{needs.prepBuild.outputs.obcVersion2}} + OBC_VERSION: ${{needs.prepBuild.outputs.obcVersion2}} name: simulate build run: | echo "$OBC_VERSION" - echo "$OBC_VERSION_2" echo dummy build creating result ... echo "dummy content for ${{ matrix.kind }}" echo "dummy content for ${{ matrix.kind }}" >> ./ClimbObc${{ env.OBC_VERSION }}-${{ matrix.kind }}.axf pwd ls + - name: Upload Binary + env: + MY_SWVERSION: ${{needs.prepBuild.outputs.obcVersion2}} + uses: actions/upload-artifact@v3 + id: upload-axf + with: + name: 'Build-${{ env.MY_SWVERSION }}' + path: ClimbObc${{ env.MY_SWVERSION }}-${{ matrix.kind }}.axf + if-no-files-found: error