2020-02-22 07:30:40 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-02-23 07:56:57 +00:00
|
|
|
runs-on: ubuntu-16.04
|
2020-02-22 07:30:40 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-22 12:03:19 +00:00
|
|
|
OMR_TARGET: ['x86_64','x86']
|
2020-02-22 07:30:40 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
2020-02-23 07:56:57 +00:00
|
|
|
run: sudo apt-get install -yq build-essential git unzip ncurses-dev libz-dev libssl-dev python subversion gettext gawk wget curl rsync perl libelf-dev python3.5 libpython3.5-stdlib liblzma-dev
|
2020-02-22 07:30:40 +00:00
|
|
|
- name: Build toolchain
|
|
|
|
env:
|
|
|
|
OMR_TARGET: ${{matrix.OMR_TARGET}}
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/ysurac/openmptcprouter || true
|
2020-02-22 07:39:47 +00:00
|
|
|
pwd
|
|
|
|
ls
|
2020-02-22 07:30:40 +00:00
|
|
|
cd openmptcprouter
|
2020-02-22 08:17:44 +00:00
|
|
|
git checkout ${{ github.sha }} || true
|
2020-02-22 07:30:40 +00:00
|
|
|
git pull || true
|
2020-02-22 08:14:21 +00:00
|
|
|
export OMR_FEED_URL="https://github.com/ysurac/openmptcprouter-feeds"
|
2020-02-22 08:17:44 +00:00
|
|
|
export OMR_FEED_SRC="${{ github.sha }}"
|
2020-02-22 07:39:47 +00:00
|
|
|
pwd
|
|
|
|
ls
|
2020-02-23 07:56:57 +00:00
|
|
|
pyenv global 3.5.2
|
2020-02-22 07:30:40 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j6
|
2020-02-22 13:07:28 +00:00
|
|
|
#echo -e "$OMR_PRIVKEY" > /home/runner/work/openmptcprouter-feeds/openmptcprouter-feeds/openmptcprouter/${{ env.OMR_TARGET }}/source/key-build
|
|
|
|
#echo -e "$OMR_PUBKEY" > /home/runner/work/openmptcprouter-feeds/openmptcprouter-feeds/openmptcprouter/${{ env.OMR_TARGET }}/source/key-build.pub
|
2020-02-22 07:30:40 +00:00
|
|
|
- name: Build
|
2020-02-22 12:03:19 +00:00
|
|
|
env:
|
|
|
|
OMR_TARGET: ${{matrix.OMR_TARGET}}
|
2020-02-22 21:13:10 +00:00
|
|
|
run: make IGNORE_ERRORS=m -C /home/runner/work/openmptcprouter-feeds/openmptcprouter-feeds/openmptcprouter/${{ env.OMR_TARGET }}/source package/{compile,install,index} target/install -j1 V=s
|
2020-02-22 07:30:40 +00:00
|
|
|
|