Skip to content

Commit

Permalink
Fix/zip build reports (#21)
Browse files Browse the repository at this point in the history
* split up CI from release

* rm needs: version

* rm echo

* add additional logging for publish task

* bump paulhatch/semantic-version

* adjust uploading of build reports

* make build report name distinct

* rename error-report -> build-report

* restore  if: failure()
  • Loading branch information
aSemy authored Oct 24, 2022
1 parent aec0bdc commit b299554
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,14 @@ jobs:
- name: Run tests
run: ./gradlew ${{ matrix.target }} --scan --stacktrace --info

- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip

- name: Upload the build report
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
name: build-report-${{ runner.os }}-${{ matrix.target }}
path: "**/build/reports/"
if-no-files-found: ignore


macos:
if: github.repository == 'Kantis/ks3'
Expand Down Expand Up @@ -102,20 +100,21 @@ jobs:
- name: Run tests
run: ./gradlew ${{ matrix.target }} --scan --stacktrace --info

- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip

- name: Upload the build report
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
name: build-report-${{ runner.os }}-${{ matrix.target }}
path: "**/build/reports/"
if-no-files-found: ignore

windows:
if: github.repository == 'Kantis/ks3'
runs-on: windows-latest
strategy:
matrix:
target:
- mingwX64Test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
Expand All @@ -135,18 +134,15 @@ jobs:
key: ${{ runner.os }}-kotlin-konan

- name: Run tests
run: ./gradlew mingwX64Test --scan --stacktrace --info

- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
run: ./gradlew ${{ matrix.target }} --scan --stacktrace --info

- name: Upload the build report
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: error-report
path: build-reports.zip
name: build-report-${{ runner.os }}-${{ matrix.target }}
path: "**/build/reports/"
if-no-files-found: ignore


env:
Expand Down

0 comments on commit b299554

Please sign in to comment.