Browse Source
* Added GitHub Action CI. Signed-off-by: RICCIARDI-Adrien <adrien.ricciardi@hotmail.fr> * Removed Travis CI support. Signed-off-by: RICCIARDI-Adrien <adrien.ricciardi@hotmail.fr>master
committed by
GitHub
3 changed files with 47 additions and 54 deletions
@ -0,0 +1,32 @@ |
|||
name: Build |
|||
on: [push, pull_request] |
|||
|
|||
jobs: |
|||
build: |
|||
name: Build |
|||
runs-on: ubuntu-20.04 |
|||
container: ubuntu:xenial |
|||
env: |
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|||
TRAVIS_BUILD_NUMBER: ${{ github.run_number }} |
|||
VERSION: ${{ github.ref_name }} |
|||
steps: |
|||
- name: Configure build machine |
|||
run: | |
|||
apt update |
|||
apt install -y -q apt-transport-https curl git kmod software-properties-common sudo wget |
|||
# The keyboard-configuration package is needed later and requires the user to input a number via dpkg-reconfigure, so preinstall it without front-end to avoid blocking the later installations |
|||
DEBIAN_FRONTEND=noninteractive apt install -y -q keyboard-configuration |
|||
- name: Checkout sources |
|||
run: | |
|||
# Can't use actions/checkout@v2 action here because Ubuntu 16.04 git version is too old, so the action downloads an archive instead of a git repository, and this prevents linuxdeployqt from finding the commit it is built from |
|||
git clone --depth=1 https://github.com/${{ github.repository }} --branch=${{ github.ref_name }} . |
|||
- name: Environment tests |
|||
run: ./tests/tests-environment.sh |
|||
- name: CI tests |
|||
run: ./tests/tests-ci.sh |
|||
- name: Deploy release (only when building from master branch) |
|||
if: ${{ github.ref == 'refs/heads/master' }} |
|||
run: | |
|||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh |
|||
bash ./upload.sh ./linuxdeployqt-*.AppImage* |
@ -1,38 +0,0 @@ |
|||
language: cpp |
|||
dist: xenial |
|||
virt: vm |
|||
group: edge |
|||
arch: |
|||
# The following seems not to work; still runs on an amd64 host; |
|||
# maybe because we have not been migrated from travis-ci.org to travis-ci.com yet? |
|||
# arm64-graviton2 |
|||
- amd64 |
|||
|
|||
os: linux |
|||
|
|||
env: |
|||
global: |
|||
- DISPLAY=:99 |
|||
|
|||
before_install: |
|||
- ./tests/tests-environment.sh |
|||
|
|||
before_script: |
|||
- git fetch --unshallow |
|||
|
|||
script: |
|||
- ./tests/tests-ci.sh |
|||
|
|||
after_success: |
|||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh |
|||
# quick fix for issue 223 |
|||
- if [ "$TRAVIS_TAG" != "$TRAVIS_BRANCH" ] && [ "$TRAVIS_BRANCH" != "master" ]; then export TRAVIS_EVENT_TYPE=pull_request; fi |
|||
- bash ./upload.sh ./linuxdeployqt-*.AppImage* pvs-studio-report.* |
|||
|
|||
after_script: |
|||
- "xpra stop :99" |
|||
|
|||
branches: |
|||
except: |
|||
- # Do not build tags that we create when we upload to GitHub Releases |
|||
- /^(?i:continuous)$/ |
Loading…
Reference in new issue