Skip to content

Commit

Permalink
ci: sdk build and add libudebug
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Mar 20, 2024
1 parent 63058d1 commit bd3ec3c
Showing 1 changed file with 62 additions and 4 deletions.
66 changes: 62 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
name: OpenWrt CI testing

on: [ push, pull_request ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
CI_ENABLE_UNIT_TESTING: 0
CI_TARGET_BUILD_DEPENDS: libubox
CI_TARGET_BUILD_DEPENDS: libubox libudebug
CI_CMAKE_EXTRA_BUILD_ARGS: -DJAIL_SUPPORT=1

jobs:
native_testing:
name: Various native checks
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: ynezz/gh-actions-openwrt-ci-native@v0.0.1
- uses: ynezz/gh-actions-openwrt-ci-native@v0.0.2

- name: Upload build artifacts
uses: actions/upload-artifact@v2
Expand All @@ -25,3 +30,56 @@ jobs:
path: |
build/scan
tests/cram/**/*.t.err
sdk_build:
name: Build with OpenWrt ${{ matrix.arch }} SDK
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- arch: mips_24kc
target: ath79-generic

- arch: arm_cortex-a9_neon
target: imx-cortexa9

- arch: mipsel_24kc
target: malta-le

- arch: aarch64_cortex-a53
target: mediatek-mt7622

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Determine branch name
run: |
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Build with OpenWrt ${{ matrix.arch }} SDK
uses: openwrt/gh-action-sdk@v5
env:
ARCH: ${{ matrix.arch }}
FEEDNAME: procd_ci
PACKAGES: procd

- name: Move created packages to project dir
run: cp bin/packages/${{ matrix.arch }}/procd_ci/*.ipk . || true

- name: Store packages
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.arch }}-packages
path: "*.ipk"

- name: Store logs
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.arch }}-logs
path: logs/

0 comments on commit bd3ec3c

Please sign in to comment.