2020-02-24 18:02:34 +01:00
|
|
|
name: Hyperion PR Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-09-12 19:47:23 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-02-24 18:02:34 +01:00
|
|
|
|
|
|
|
######################
|
|
|
|
###### Linux #########
|
|
|
|
######################
|
|
|
|
|
2019-09-12 19:47:23 +02:00
|
|
|
Linux:
|
|
|
|
name: ${{ matrix.dockerName }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-09-06 13:43:44 +02:00
|
|
|
dockerImage: [ x86_64, armv6l, armv7l, aarch64 ]
|
2019-09-12 19:47:23 +02:00
|
|
|
include:
|
2020-09-06 13:43:44 +02:00
|
|
|
- dockerImage: x86_64
|
|
|
|
dockerName: Debian Stretch (x86_64)
|
2019-09-12 19:47:23 +02:00
|
|
|
platform: x11
|
2020-09-06 13:43:44 +02:00
|
|
|
- dockerImage: armv6l
|
2019-09-12 19:47:23 +02:00
|
|
|
dockerName: Debian Stretch (Raspberry Pi v1 & ZERO)
|
|
|
|
platform: rpi
|
2020-09-06 13:43:44 +02:00
|
|
|
- dockerImage: armv7l
|
2019-09-12 19:47:23 +02:00
|
|
|
dockerName: Debian Stretch (Raspberry Pi 2 & 3)
|
|
|
|
platform: rpi
|
2020-09-06 13:43:44 +02:00
|
|
|
- dockerImage: aarch64
|
2019-09-12 19:47:23 +02:00
|
|
|
dockerName: Debian Stretch (Generic AARCH64)
|
|
|
|
platform: amlogic
|
|
|
|
|
|
|
|
steps:
|
2020-02-26 18:52:55 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2019-09-12 19:47:23 +02:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Append PR number to version
|
|
|
|
- name: Append PR number to version
|
|
|
|
shell: bash
|
2020-03-29 15:33:01 +02:00
|
|
|
run: |
|
|
|
|
tr -d '\n' < version > temp && mv temp version
|
|
|
|
echo -n -PR#${{ github.event.pull_request.number }} >> version
|
2020-02-24 18:02:34 +01:00
|
|
|
|
|
|
|
# Build packages
|
2019-09-12 19:47:23 +02:00
|
|
|
- name: Build packages
|
|
|
|
env:
|
2020-09-06 13:43:44 +02:00
|
|
|
DOCKER_IMAGE: ${{ matrix.dockerImage }}
|
|
|
|
DOCKER_TAG: stretch
|
2019-09-12 19:47:23 +02:00
|
|
|
DOCKER_NAME: ${{ matrix.dockerName }}
|
|
|
|
PLATFORM: ${{ matrix.platform }}
|
|
|
|
shell: bash
|
|
|
|
run: ./.ci/ci_build.sh
|
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Collecting deployable artifacts
|
|
|
|
- name: Collecting deployable artifacts
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-09-06 13:43:44 +02:00
|
|
|
mkdir -p ${{ matrix.dockerImage }}
|
|
|
|
mv deploy/*.tar.gz ${{ matrix.dockerImage }}
|
|
|
|
if: matrix.dockerImage != 'aarch64'
|
2019-09-12 19:47:23 +02:00
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-09-06 13:43:44 +02:00
|
|
|
name: ${{ matrix.dockerImage }}
|
|
|
|
path: ${{ matrix.dockerImage }}
|
|
|
|
if: matrix.dockerImage != 'aarch64'
|
2020-02-24 18:02:34 +01:00
|
|
|
|
|
|
|
######################
|
|
|
|
###### macOS #########
|
|
|
|
######################
|
2019-09-12 19:47:23 +02:00
|
|
|
|
|
|
|
macOS:
|
|
|
|
name: macOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2020-02-26 18:52:55 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2019-09-12 19:47:23 +02:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Append PR number to version
|
|
|
|
- name: Append PR number to version
|
|
|
|
shell: bash
|
2020-03-29 15:33:01 +02:00
|
|
|
run: |
|
|
|
|
tr -d '\n' < version > temp && mv temp version
|
|
|
|
echo -n "-PR#${{ github.event.pull_request.number }}" >> version
|
2020-02-24 18:02:34 +01:00
|
|
|
|
|
|
|
# Install dependencies
|
2019-09-12 19:47:23 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
|
|
|
run: ./.ci/ci_install.sh
|
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Build packages
|
2019-09-12 19:47:23 +02:00
|
|
|
- name: Build packages
|
|
|
|
env:
|
|
|
|
PLATFORM: osx
|
|
|
|
shell: bash
|
|
|
|
run: ./.ci/ci_build.sh
|
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Collecting deployable artifacts
|
|
|
|
- name: Collecting deployable artifacts
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir -p macOS
|
2020-02-24 20:09:24 +01:00
|
|
|
mv build/*.tar.gz macOS
|
2019-09-12 19:47:23 +02:00
|
|
|
|
2020-02-24 18:02:34 +01:00
|
|
|
# Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-05-25 21:51:11 +02:00
|
|
|
name: macOS
|
2020-02-24 18:02:34 +01:00
|
|
|
path: macOS
|
2020-05-01 20:19:19 +02:00
|
|
|
|
2020-05-12 19:51:19 +02:00
|
|
|
######################
|
|
|
|
###### Windows #######
|
|
|
|
######################
|
|
|
|
|
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
2020-07-12 15:50:30 +02:00
|
|
|
env:
|
|
|
|
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC'
|
2020-05-12 19:51:19 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
# Append PR number to version
|
|
|
|
- name: Append PR number to version
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
tr -d '\n' < version > temp && mv temp version
|
|
|
|
echo -n "-PR#${{ github.event.pull_request.number }}" >> version
|
|
|
|
|
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
2020-05-18 21:09:33 +02:00
|
|
|
version: '5.15.0'
|
2020-05-12 19:51:19 +02:00
|
|
|
target: 'desktop'
|
2020-05-18 21:09:33 +02:00
|
|
|
arch: 'win64_msvc2019_64'
|
2020-05-12 19:51:19 +02:00
|
|
|
|
|
|
|
- name: Install Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install NSIS
|
2020-07-12 15:50:30 +02:00
|
|
|
run: choco install --no-progress nsis -y
|
|
|
|
|
|
|
|
- name: Install OpenSSL
|
|
|
|
run: choco install --no-progress openssl -y
|
2020-05-12 19:51:19 +02:00
|
|
|
|
|
|
|
- name: Set up x64 build architecture environment
|
|
|
|
shell: cmd
|
2020-07-12 15:50:30 +02:00
|
|
|
run: call "${{env.VCINSTALLDIR}}\Auxiliary\Build\vcvars64.bat"
|
2020-05-12 19:51:19 +02:00
|
|
|
|
|
|
|
# Build packages
|
|
|
|
- name: Build packages
|
|
|
|
env:
|
|
|
|
PLATFORM: windows
|
|
|
|
shell: bash
|
|
|
|
run: ./.ci/ci_build.sh
|
|
|
|
|
|
|
|
# Collecting deployable artifacts
|
|
|
|
- name: Collecting deployable artifacts
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir -p windows
|
|
|
|
mv build/*.zip windows
|
2020-05-25 21:51:11 +02:00
|
|
|
|
2020-05-12 19:51:19 +02:00
|
|
|
# Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-05-25 21:51:11 +02:00
|
|
|
name: windows
|
2020-05-12 19:51:19 +02:00
|
|
|
path: windows
|
|
|
|
|
2020-05-01 20:19:19 +02:00
|
|
|
######################
|
|
|
|
#### Documentation ###
|
|
|
|
######################
|
|
|
|
|
|
|
|
docs:
|
|
|
|
name: Documentation
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: docs
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
- name: Setup node 12
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '12'
|
|
|
|
|
|
|
|
# Build Docs
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
npm install -g yarn
|
|
|
|
yarn install
|
|
|
|
yarn docs:build
|