From af32c8d0fda69d2e1a43ccbba3adaca828b03fe7 Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Fri, 11 Jun 2021 12:56:05 +0200 Subject: [PATCH] Upload artifacts (#43) * Upload artifacts * Update ci-macos.yml * Update ci-macos.yml * Update CI --- .github/workflows/ci-macos.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 8766baa..be6dc0e 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -21,6 +21,14 @@ jobs: run: swift test -v --skip-update --parallel --enable-test-discovery --enable-code-coverage env: DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + - name: Upload test artifacts + if: failure() + uses: actions/upload-artifact@v2.2.3 + with: + name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }} + path: | + .build/**/*.json + .build/**/*.xctest - name: Generate coverage report run: xcrun llvm-cov export -format="lcov" .build/debug/*PackageTests.xctest/Contents/MacOS/*PackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov - name: Upload code coverage report @@ -32,4 +40,16 @@ jobs: - name: Build Release run: swift build -c release env: - DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer \ No newline at end of file + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + - name: Upload build artifacts + uses: actions/upload-artifact@v2.2.3 + with: + name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }} + path: | + *.lcov + .build/*.yaml + .build/**/*.a + .build/**/*.so + .build/**/*.dylib + .build/**/*.dSYM + .build/**/*.json