diff options
author | Martin Pool <mbp@sourcefrog.net> | 2021-09-16 20:06:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 13:06:03 +1000 |
commit | 0f7199ec4c077c642af50488fc0bbd1070bf92d1 (patch) | |
tree | 21c051abeb1c963d9496f46c1c633fdfdd60c116 | |
parent | d202e4eef208165aa7768ad15236e1cd1d6fae0c (diff) | |
download | librsync-0f7199ec4c077c642af50488fc0bbd1070bf92d1.tar.gz |
Upload build and install artifacts from Github actions (#231)
Add "Build install", "Upload build" and "Upload install" steps to test install and upload build and install artifacts.
-rw-r--r-- | .github/workflows/check.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5e1af9b..e3cab18 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -67,7 +67,25 @@ jobs: # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest -C ${{matrix.build}} --output-on-failure + + - name: Build install + # Build your program with the given configuration. + run: cmake --install 'build' --config ${{matrix.build}} --prefix 'install' - name: Build docs if: ${{matrix.build_docs}} run: cmake --build '${{github.workspace}}/build' --target doc + + - name: Upload build + uses: actions/upload-artifact@v2 + with: + name: build results ${{matrix.os}} ${{matrix.build}} ${{matrix.options}} + path: ${{github.workspace}}/build + if-no-files-found: error + + - name: Upload install + uses: actions/upload-artifact@v2 + with: + name: install results ${{matrix.os}} ${{matrix.build}} ${{matrix.options}} + path: ${{github.workspace}}/install + if-no-files-found: error |