aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-06-07 17:09:15 +0200
committerPierre Ossman <ossman@cendio.se>2021-06-08 11:17:16 +0200
commitabcabc5a9ee3e34935c03676aa8d9451fe8f47d0 (patch)
tree748ecc25d680fb51915c5764995fa6e526446592
parent8616c0bd67d7c393c30816d1a72edd477514afce (diff)
downloadtigervnc-abcabc5a9ee3e34935c03676aa8d9451fe8f47d0.tar.gz
tigervnc-abcabc5a9ee3e34935c03676aa8d9451fe8f47d0.zip
Convert CI to GitHub Actions
Travis has unfortunately been severely rate limited by Docker Hub so we have to switch to GitHub, which has an agreement with Docker to avoid the rate limiting.
-rw-r--r--.github/containers/bionic/Dockerfile (renamed from .travis/bionic/Dockerfile)0
-rwxr-xr-x.github/containers/bionic/build.sh (renamed from .travis/bionic/build.sh)0
-rw-r--r--.github/containers/centos7/Dockerfile (renamed from .travis/centos7/Dockerfile)0
-rwxr-xr-x.github/containers/centos7/build.sh (renamed from .travis/centos7/build.sh)0
-rw-r--r--.github/containers/centos8/Dockerfile (renamed from .travis/centos8/Dockerfile)0
-rwxr-xr-x.github/containers/centos8/build.sh (renamed from .travis/centos8/build.sh)0
-rw-r--r--.github/containers/focal/Dockerfile (renamed from .travis/focal/Dockerfile)0
-rwxr-xr-x.github/containers/focal/build.sh (renamed from .travis/focal/build.sh)0
-rw-r--r--.github/containers/xenial/Dockerfile (renamed from .travis/xenial/Dockerfile)0
-rwxr-xr-x.github/containers/xenial/build.sh (renamed from .travis/xenial/build.sh)0
-rw-r--r--.github/workflows/build.yml74
-rw-r--r--.travis.yml82
12 files changed, 73 insertions, 83 deletions
diff --git a/.travis/bionic/Dockerfile b/.github/containers/bionic/Dockerfile
index b3908371..b3908371 100644
--- a/.travis/bionic/Dockerfile
+++ b/.github/containers/bionic/Dockerfile
diff --git a/.travis/bionic/build.sh b/.github/containers/bionic/build.sh
index 82cf2d9c..82cf2d9c 100755
--- a/.travis/bionic/build.sh
+++ b/.github/containers/bionic/build.sh
diff --git a/.travis/centos7/Dockerfile b/.github/containers/centos7/Dockerfile
index 36e86fbd..36e86fbd 100644
--- a/.travis/centos7/Dockerfile
+++ b/.github/containers/centos7/Dockerfile
diff --git a/.travis/centos7/build.sh b/.github/containers/centos7/build.sh
index 55ad8107..55ad8107 100755
--- a/.travis/centos7/build.sh
+++ b/.github/containers/centos7/build.sh
diff --git a/.travis/centos8/Dockerfile b/.github/containers/centos8/Dockerfile
index 8beec7e2..8beec7e2 100644
--- a/.travis/centos8/Dockerfile
+++ b/.github/containers/centos8/Dockerfile
diff --git a/.travis/centos8/build.sh b/.github/containers/centos8/build.sh
index 91caffb5..91caffb5 100755
--- a/.travis/centos8/build.sh
+++ b/.github/containers/centos8/build.sh
diff --git a/.travis/focal/Dockerfile b/.github/containers/focal/Dockerfile
index 7fea0d10..7fea0d10 100644
--- a/.travis/focal/Dockerfile
+++ b/.github/containers/focal/Dockerfile
diff --git a/.travis/focal/build.sh b/.github/containers/focal/build.sh
index 3b68e70f..3b68e70f 100755
--- a/.travis/focal/build.sh
+++ b/.github/containers/focal/build.sh
diff --git a/.travis/xenial/Dockerfile b/.github/containers/xenial/Dockerfile
index ad5414fd..ad5414fd 100644
--- a/.travis/xenial/Dockerfile
+++ b/.github/containers/xenial/Dockerfile
diff --git a/.travis/xenial/build.sh b/.github/containers/xenial/build.sh
index 60949eee..60949eee 100755
--- a/.travis/xenial/build.sh
+++ b/.github/containers/xenial/build.sh
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7979e529..98a71d1b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,7 +3,79 @@ name: Build
on: [push, pull_request]
jobs:
- build:
+ build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libgnutls28-dev libfltk1.3-dev fluid gettext
+ sudo apt-get install -y libxtst-dev libxdamage-dev libxfixes-dev libxrandr-dev libpam-dev
+ - name: Configure
+ run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
+ - name: Build
+ working-directory: build
+ run: make
+ - name: Install
+ working-directory: build
+ run: make tarball
+
+ build-windows:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: msys2/setup-msys2@v2
+ - name: Install dependencies
+ run: |
+ pacman --sync --noconfirm --needed make mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
+ pacman --sync --noconfirm --needed mingw-w64-x86_64-fltk mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-gnutls mingw-w64-x86_64-pixman
+ - name: Configure
+ run: cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -S . -B build
+ - name: Build
+ working-directory: build
+ run: make
+ - name: Install
+ working-directory: build
+ env:
+ MSYS2_PATH_TYPE: inherit
+ run: make installer winvnc_installer
+
+ build-macos:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install dependencies
+ run: |
+ brew install fltk pixman
+ - name: Configure
+ run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build
+ - name: Build
+ working-directory: build
+ run: make
+ - name: Install
+ working-directory: build
+ run: make dmg
+
+ build-packages:
+ strategy:
+ matrix:
+ target:
+ - centos8
+ - centos7
+ - xenial
+ - bionic
+ - focal
+ fail-fast: false
+ runs-on: ubuntu-latest
+ env:
+ DOCKER: ${{ matrix.target }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build image
+ run: docker build -t tigervnc/$DOCKER .github/containers/$DOCKER
+ - name: Build packages
+ run: .github/containers/$DOCKER/build.sh
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index fcf79c52..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,82 +0,0 @@
-dist: xenial
-language: minimal
-
-env:
- - DOCKER=centos8
- - DOCKER=centos7
- - DOCKER=xenial
- - DOCKER=bionic
- - DOCKER=focal
-
-matrix:
- include:
- - language: cpp
- env:
- before_install:
- - sudo apt-get install -y libgnutls-dev libfltk1.3-dev fluid
- - sudo apt-get install -y libxtst-dev libxdamage-dev libxfixes-dev libxrandr-dev
- script:
- - cmake -DCMAKE_BUILD_TYPE=Debug . && make && make tarball
-
- - language: cpp
- os: windows
- env:
- # From https://docs.travis-ci.com/user/reference/windows/
- before_install:
- - |-
- choco install --no-progress -y innosetup
- [[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
- choco uninstall -y mingw
- choco upgrade --no-progress -y msys2
- export msys2='cmd //C RefreshEnv.cmd '
- export msys2+='& set MSYS=winsymlinks:nativestrict '
- export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
- export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
- export msys2+=" -msys2 -c "\"\$@"\" --"
- $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain
- $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-fltk mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-gnutls mingw-w64-x86_64-pixman
- taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967
- export PATH=/C/tools/msys64/mingw64/bin:$PATH
- export MAKE=mingw32-make # so that Autotools can find it
- script:
- - cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_C_COMPILER=gcc -DCMAKE=CXX_COMPILER=g++ . && mingw32-make && mingw32-make installer winvnc_installer
- before_cache:
- - |-
- # https://unix.stackexchange.com/a/137322/107554
- $msys2 pacman --sync --clean --noconfirm
- cache:
- directories:
- - $HOME/AppData/Local/Temp/chocolatey
- - /C/tools/msys64
-
- - language: cpp
- os: osx
- # The default image is buggy ATM, use the latest
- osx_image: xcode11.5
- env:
- addons:
- homebrew:
- packages:
- - gettext
- - fltk
- before_install:
- script:
- - cmake -DCMAKE_BUILD_TYPE=Debug . && make && make dmg
-
- - language: java
- # compile with java 8 for backwards compatibility
- dist: xenial
- env:
- jdk: openjdk8
- before_install:
- - sudo apt-get -y install openjdk-8-jdk
- addons:
- apt:
- update: true
- script:
- - cd java && cmake . && make
-
-before_install:
- - docker build -t tigervnc/$DOCKER .travis/$DOCKER
-script:
- - .travis/$DOCKER/build.sh