Skip to content

Commit

Permalink
Move upload-artifact outside of the container
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Nov 7, 2024
1 parent 3ec460a commit b8f0be8
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,37 @@ jobs:
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew build && ./gradlew publishToMavenLocal"
- name: Save Reports
id: linux-save-reports
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/build/reports/
key: ${{ github.sha }}-linux-reports-${{ matrix.java }}

upload-linux-artifacts:
needs: build-job-scheduler-linux
runs-on: ubuntu-latest
strategy:
matrix:
java: [21, 23]
if: always()
steps:
- uses: actions/cache/restore@v4
id: linux-restore-reports
with:
path: ${{ github.workspace }}/build/reports/
key: ${{ github.sha }}-linux-reports-${{ matrix.java }}

- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: linux-JDK${{ matrix.java }}-reports
path: |
./build/reports/
path: ${{ github.workspace }}/build/reports/

build-job-scheduler-MacOS:
strategy:
Expand Down

0 comments on commit b8f0be8

Please sign in to comment.