summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-07-04 14:42:55 +0200
committerPierre Ossman <ossman@cendio.se>2022-07-05 09:22:09 +0200
commit1597495d0c6280800cdf337afcd234f9bbca5f22 (patch)
tree39f2ab0ff320c6e2e9eb6908db582c47edc844f7
parentda5b0df9eebdcc9b205546d05564c2cd07de0f47 (diff)
downloadtigervnc-1597495d0c6280800cdf337afcd234f9bbca5f22.tar.gz
tigervnc-1597495d0c6280800cdf337afcd234f9bbca5f22.zip
Store artifacts from Github actions
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.
-rwxr-xr-x.github/containers/bionic/build.sh3
-rwxr-xr-x.github/containers/centos7/build.sh4
-rwxr-xr-x.github/containers/centos8/build.sh4
-rwxr-xr-x.github/containers/focal/build.sh3
-rw-r--r--.github/workflows/build.yml20
5 files changed, 34 insertions, 0 deletions
diff --git a/.github/containers/bionic/build.sh b/.github/containers/bionic/build.sh
index 82cf2d9c..ebbc50c4 100755
--- a/.github/containers/bionic/build.sh
+++ b/.github/containers/bionic/build.sh
@@ -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
diff --git a/.github/containers/centos7/build.sh b/.github/containers/centos7/build.sh
index ad55b20e..6d1f9364 100755
--- a/.github/containers/centos7/build.sh
+++ b/.github/containers/centos7/build.sh
@@ -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
diff --git a/.github/containers/centos8/build.sh b/.github/containers/centos8/build.sh
index 91caffb5..cf8a82c3 100755
--- a/.github/containers/centos8/build.sh
+++ b/.github/containers/centos8/build.sh
@@ -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
diff --git a/.github/containers/focal/build.sh b/.github/containers/focal/build.sh
index 3b68e70f..3e6e5c09 100755
--- a/.github/containers/focal/build.sh
+++ b/.github/containers/focal/build.sh
@@ -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
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bdd1f326..b1d570ad 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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