2020-02-22 07:30:40 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-02-23 08:50:53 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-02-22 07:30:40 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-23 19:06:36 +00:00
|
|
|
OMR_TARGET: ['x86_64']
|
2020-02-22 07:30:40 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
2020-02-23 08:53:02 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2020-03-04 09:10:11 +00:00
|
|
|
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
|
|
|
|
- name: Build toolchain
|
2020-02-22 07:30:40 +00:00
|
|
|
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-23 08:50:53 +00:00
|
|
|
git checkout develop || 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-23 08:50:53 +00:00
|
|
|
export OMR_FEED_SRC="develop"
|
2020-02-22 07:39:47 +00:00
|
|
|
pwd
|
|
|
|
ls
|
2020-03-04 09:10:11 +00:00
|
|
|
sh build.sh prepare {tools,toolchain}/install -j$(nproc)
|
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-03-04 09:10:11 +00:00
|
|
|
run: sudo make IGNORE_ERRORS=m -C ./openmptcprouter/${{ env.OMR_TARGET }}/source package/{compile,install,index} target/install -j$(nproc)
|
2020-02-22 07:30:40 +00:00
|
|
|
|