]> source.dussan.org Git - tigervnc.git/commitdiff
Store artifacts from Github actions 1490/head
authorPierre Ossman <ossman@cendio.se>
Mon, 4 Jul 2022 12:42:55 +0000 (14:42 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 5 Jul 2022 07:22:09 +0000 (09:22 +0200)
Might be useful for testing in some cases. Note that the Windows and
Linux binaries will depend on libraries from the build environment. So
the user will need to match those manually.

.github/containers/bionic/build.sh
.github/containers/centos7/build.sh
.github/containers/centos8/build.sh
.github/containers/focal/build.sh
.github/workflows/build.yml

index 82cf2d9c3e854fb9efc0ae61d119a0ac19c4e3e7..ebbc50c473f4847f9033de561eb64fdd0541ae5b 100755 (executable)
@@ -53,3 +53,6 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --rm tigervnc/
        sudo apt-get -f install -y &&
        cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage
        "
+
+mkdir -p ${CURDIR}/result
+cp -av ${CURDIR}/build/*.deb ${CURDIR}/result
index ad55b20e04e20d71aa330008d324b6a65723bb22..6d1f93648a8ecec52c898900e48833d31b251fb1 100755 (executable)
@@ -39,3 +39,7 @@ docker run --volume ${CURDIR}/rpmbuild:/home/rpm/rpmbuild --interactive --rm tig
         sudo chown 0.0 ~/rpmbuild/SPECS/* &&
        rpmbuild -ba ~/rpmbuild/SPECS/tigervnc.spec
        "
+
+mkdir -p ${CURDIR}/result
+cp -av ${CURDIR}/rpmbuild/RPMS ${CURDIR}/result
+cp -av ${CURDIR}/rpmbuild/SRPMS ${CURDIR}/result
index 91caffb5acc71da76cdbcbc91cab16526c6462ce..cf8a82c39d36464f28555c39255e0e76366ff000 100755 (executable)
@@ -38,3 +38,7 @@ docker run --volume ${CURDIR}/rpmbuild:/home/rpm/rpmbuild --interactive --rm tig
         sudo chown 0.0 ~/rpmbuild/SPECS/* &&
        rpmbuild -ba ~/rpmbuild/SPECS/tigervnc.spec
        "
+
+mkdir -p ${CURDIR}/result
+cp -av ${CURDIR}/rpmbuild/RPMS ${CURDIR}/result
+cp -av ${CURDIR}/rpmbuild/SRPMS ${CURDIR}/result
index 3b68e70f5df8339da87c5cfe74d8b9839f2d9e7f..3e6e5c0910f11d88a10994b8ede11cbf1bb963dc 100755 (executable)
@@ -53,3 +53,6 @@ docker run --volume ${CURDIR}/build:/home/deb/build --interactive --rm tigervnc/
        sudo apt-get -f install -y &&
        cd ~/build/tigervnc-${VERSION} && dpkg-buildpackage
        "
+
+mkdir -p ${CURDIR}/result
+cp -av ${CURDIR}/build/*.deb ${CURDIR}/result
index bdd1f326bb00cd00984abaab2cea4d6cc4dcdc6a..b1d570ad4ad2482c79234d7827d2d3f0932bb119 100644 (file)
@@ -21,6 +21,10 @@ jobs:
       - name: Install
         working-directory: build
         run: make tarball
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Linux (Ubuntu)
+          path: build/tigervnc-*.tar.gz
 
   build-windows:
     runs-on: windows-latest
@@ -44,6 +48,10 @@ jobs:
         env:
           MSYS2_PATH_TYPE: inherit
         run: make installer winvnc_installer
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Windows
+          path: build/release/tigervnc*.exe
 
   build-macos:
     runs-on: macos-latest
@@ -60,6 +68,10 @@ jobs:
       - name: Install
         working-directory: build
         run: make dmg
+      - uses: actions/upload-artifact@v3
+        with:
+          name: macOS
+          path: build/TigerVNC-*.dmg
 
   build-java:
     runs-on: ubuntu-latest
@@ -79,6 +91,10 @@ jobs:
       - name: Build
         working-directory: java/build
         run: make
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Java (${{ matrix.java }})
+          path: java/build/VncViewer.jar
 
   build-packages:
     strategy:
@@ -98,3 +114,7 @@ jobs:
         run: docker build -t tigervnc/$DOCKER .github/containers/$DOCKER
       - name: Build packages
         run: .github/containers/$DOCKER/build.sh
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Packages (${{ matrix.target }})
+          path: .github/containers/${{ matrix.target }}/result