From 1e702e53c62e90a0923fd3170bbeeba9904fc830 Mon Sep 17 00:00:00 2001 From: Loki077 Date: Mon, 9 Dec 2024 23:14:31 +1100 Subject: [PATCH] Update CI workflow to upload and download build artifacts using GitHub Actions --- .github/workflows/carbonix_build.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/carbonix_build.yml b/.github/workflows/carbonix_build.yml index 832c6aa7ca..4bc730d097 100644 --- a/.github/workflows/carbonix_build.yml +++ b/.github/workflows/carbonix_build.yml @@ -233,20 +233,25 @@ jobs: ccache -s ccache -z - - name: Copy build artifacts to shared location - run: | - mkdir -p $GITHUB_WORKSPACE/shared-output - cp -r output/* $GITHUB_WORKSPACE/shared-output - ls -la $GITHUB_WORKSPACE/shared-output + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: build-periph-${{ matrix.config }} + path: output/ list-periph-files: runs-on: ubuntu-22.04 needs: build-periph steps: + - name: Download all build artifacts + uses: actions/download-artifact@v3 + with: + path: shared-output/ + - name: List files run: | - ls -la $GITHUB_WORKSPACE/shared-output/ - + ls -la shared-output/ + # build-sitl: # runs-on: 'windows-latest' # needs: setup-s3-path