]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
CI: add dist-artifact
authorMartin Matuska <martin@matuska.org>
Tue, 8 Feb 2022 08:23:37 +0000 (09:23 +0100)
committerMartin Matuska <martin@matuska.org>
Tue, 8 Feb 2022 08:52:02 +0000 (09:52 +0100)
.github/workflows/ci.yml
build/ci/build.sh

index 0947d95cbe1813b88a6a52834afb694801f3ed48..a96841741d23694a50a1fd66b6992f1e8fee9e16 100644 (file)
@@ -96,6 +96,12 @@ jobs:
       run: ./build/ci/build.sh -a distcheck
       env:
         SKIP_OPEN_FD_ERR_TEST: 1
+    - name: Dist-Artifact
+      run: ./build/ci/build.sh -a dist-artifact
+    - uses: actions/upload-artifact@v1
+      with:
+        name: libarchive-${{ github.sha }}
+        path: libarchive-dist.tar
 
   Windows:
     runs-on: windows-latest
index 6e36e3e75a9ed753a94581d972f6a4da1ae56eeb..79f26d758f35c0f9999f1e605eb7ed6d3e4d3a9c 100755 (executable)
@@ -43,6 +43,7 @@ while getopts a:b:c:d:s: opt; do
                                install) ;;
                                distcheck) ;;
                                artifact) ;;
+                               dist-artifact) ;;
                                *) inputerror "Invalid action (-a)" ;;
                        esac
                        ACTIONS="${ACTIONS} ${OPTARG}"
@@ -163,6 +164,11 @@ for action in ${ACTIONS}; do
                        tar -c -J -C "${BUILDDIR}/destdir" -f "${CURDIR}/libarchive.tar.xz" usr
                        ls -l "${CURDIR}/libarchive.tar.xz"
                ;;
+               dist-artifact)
+                       tar -c -C "${BUILDDIR}" -f "${CURDIR}/libarchive-dist.tar" \
+                               libarchive-*.tar.gz libarchive-*.tar.xz libarchive-*.zip
+                       ls -l "${CURDIR}/libarchive-dist.tar"
+               ;;
        esac
        if [ "${RET}" != "0" ]; then
                exit "${RET}"