Skip to content

Add farmng version

Add farmng version #16

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
container: ubuntu:trusty
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TRAVIS_BUILD_NUMBER: ${{ github.run_number }}
VERSION: continuous
steps:
- name: Configure build machine
run: |
apt update
apt install -y -q apt-transport-https curl git software-properties-common sudo wget make
# 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 it needs a newer Ubuntu version, so the action downloads an archive instead of a git repository, and this prevents linuxdeployqt from finding the commit it is built from
# Retrieve the correct repository and branch names according to the build event (push or pull_request)
if [ -z "${{ github.head_ref }}" ]; then BRANCH=${{ github.ref_name }}; REPOSITORY=${{ github.repository }}; else BRANCH=${{ github.head_ref }}; REPOSITORY=${{ github.event.pull_request.head.repo.full_name }}; fi
echo "Cloning branch $BRANCH from repository $REPOSITORY..."
git clone --depth=1 https://github.com/$REPOSITORY --branch=$BRANCH .
- name: Build
run: |
bash -ex semistaticbuild.sh