Skip to content

Commit

Permalink
collect all artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Holzmayr <[email protected]>
  • Loading branch information
TheYoctoJester committed Nov 4, 2024
1 parent bcd1846 commit f62e356
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build_boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ env:
jobs:
prepare:
runs-on: [self-hosted, linux, x64, builder]
outputs:
artifact_path: ${{ steps.artifact_path.outputs.artifact_path }}
steps:
- name: Clean up
run: rm -fR $BUILDDIR
- uses: actions/checkout@v4
- id: artifact_path
name: create artifact output directory
run: echo "artifact_path=${{ vars.ARTIFACT_OUTPUT_DIR }}/$GITHUB_REPOSITORY/$GITHUB_WORKFLOW/$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT" >> $GITHUB_OUTPUT

build:
needs: [prepare]
Expand Down Expand Up @@ -82,3 +87,12 @@ jobs:
cp ${{ vars.BUILD_ASSETS_DIR }}/site.conf build/conf/site.conf;
fi &&
kas build ../../kas/${{ matrix.subpath }}/${{ matrix.board }}.yml
collect:
needs: [prepare, build]
runs-on: [self-hosted, linux, x64, builder]
steps:
- name: collect artifacts
env:
ARTIFACT_PATH: ${{ needs.prepare.outputs.artifact_path }}
run: ./ci/collect_artifacts.sh
14 changes: 14 additions & 0 deletions .github/workflows/build_demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ env:
jobs:
prepare:
runs-on: [self-hosted, linux, x64, builder]
outputs:
artifact_path: ${{ steps.artifact_path.outputs.artifact_path }}
steps:
- name: Clean up
run: rm -fR $BUILDDIR
- uses: actions/checkout@v4
- id: artifact_path
name: create artifact output directory
run: echo "artifact_path=${{ vars.ARTIFACT_OUTPUT_DIR }}/$GITHUB_REPOSITORY/$GITHUB_WORKFLOW/$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT" >> $GITHUB_OUTPUT

build:
needs: [prepare]
Expand Down Expand Up @@ -54,3 +59,12 @@ jobs:
cp ${{ vars.BUILD_ASSETS_DIR }}/site.conf build/conf/site.conf;
fi &&
kas build ../../kas/${{ matrix.subpath }}/${{ matrix.board }}.yml
collect:
needs: [prepare, build]
runs-on: [self-hosted, linux, x64, builder]
steps:
- name: collect artifacts
env:
ARTIFACT_PATH: ${{ needs.prepare.outputs.artifact_path }}
run: ./ci/collect_artifacts.sh

0 comments on commit f62e356

Please sign in to comment.