diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..883592047 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + OMR_TARGET: ['x86_64','x86'] + + steps: + - uses: actions/checkout@v2 + - name: Prepare + run: 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 + - name: Build toolchain + env: + OMR_TARGET: ${{matrix.OMR_TARGET}} + run: | + git clone https://github.com/ysurac/openmptcprouter || true + cd openmptcprouter + git checkout ${{ env.GITHUB_REF }} || true + git pull || true + export OMR_PATH="${{ env.GITHUB_REPOSITORY }}/${{ env.GITHUB_REF }}" + export OMR_FEED_URL="https://github.com/${{ env.GITHUB_REPOSITORY }}" + export OMR_FEED_SRC="${{ env.GITHUB_REF }}" + sudo apt-get update + sudo apt-get install -yq libelf-dev + pyenv global 3.5.2 + sh build.sh prepare {tools,toolchain}/install -j6 + #echo -e "$OMR_PRIVKEY" > ~/openmptcprouter/${{ env.OMR_TARGET }}/source/key-build + #echo -e "$OMR_PUBKEY" > ~/openmptcprouter/${{ env.OMR_TARGET }}/source/key-build.pub + - name: Build + run: make IGNORE_ERRORS=m -C ~/openmptcprouter/${{ env.OMR_TARGET }}/source package/{compile,install,index} target/install -j6 +