diff --git a/.github/workflows/build_boards.yml b/.github/workflows/build_boards.yml index 5a49bb78..6748bcda 100644 --- a/.github/workflows/build_boards.yml +++ b/.github/workflows/build_boards.yml @@ -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] @@ -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 diff --git a/.github/workflows/build_demos.yml b/.github/workflows/build_demos.yml index 08681ba1..0bb9acf0 100644 --- a/.github/workflows/build_demos.yml +++ b/.github/workflows/build_demos.yml @@ -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] @@ -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 \ No newline at end of file