Skip to content

Commit

Permalink
Added TRB build toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ganehag committed Feb 22, 2023
1 parent 70ec755 commit df13b0d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/teltonika_trb1_r.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Building for TRB140, TRB141, TRB142, TRB143, TRB145

on:
release:
types: [created, tagged]
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Prepare IPK package
run: |
mkdir -p `pwd`/build/etc/init.d
mkdir -p `pwd`/build/etc/config
cp -a openwrt/CONTROL `pwd`/build
cp openwrt/omg.init `pwd`/build/etc/init.d/omg
cp openwrt/omg.config `pwd`/build/etc/config/omg
chmod +x `pwd`/build/etc/init.d/omg
echo "Architecture: arm_cortex-a7_neon-vfpv4" >> build/CONTROL/control
- name: Build project with Teltonika SDK Toolchain (TRB140, TRB141, TRB142, TRB143, TRB145)
uses: docker://ganehag/teltonika-sdk-toolchain:TRB1_R_00.07.03.4
with:
args: bash -c "export PATH=/opt/toolchain-arm_cortex-a7+neon-vfpv4_gcc-8.4.0_musl_eabi/bin:$PATH; ./configure --host=arm-openwrt-linux-muslgnueabi --prefix=`pwd`/build/usr && make install"

- name: "Build IPK package"
uses: docker://ganehag/teltonika-sdk-toolchain:TRB1_R_00.07.03.4
with:
args: ipk-build build .

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: omg_*.ipk
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit df13b0d

Please sign in to comment.