summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/openwrt-ci-master.yml
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-07-11 15:28:49 +0200
committerJo-Philipp Wich <jo@mein.io>2023-07-12 00:18:43 +0200
commitb9d8f06377608069c2c4ec27cd419ce89a393762 (patch)
tree000047647f59481e801b9e61c1a927a27f760424 /.github/workflows/openwrt-ci-master.yml
parentc7d84aae09691a99ae3db427c0b2463732ef84f4 (diff)
ci: switch to official openwrt/gh-action-sdk
Utilize the official openwrt/gh-action-sdk CI actions to test-build OpenWrt packages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to '.github/workflows/openwrt-ci-master.yml')
-rw-r--r--.github/workflows/openwrt-ci-master.yml51
1 files changed, 41 insertions, 10 deletions
diff --git a/.github/workflows/openwrt-ci-master.yml b/.github/workflows/openwrt-ci-master.yml
index a342e10..d50e7dc 100644
--- a/.github/workflows/openwrt-ci-master.yml
+++ b/.github/workflows/openwrt-ci-master.yml
@@ -34,23 +34,54 @@ jobs:
tests/cram/**/*.t.err
sdk_build:
- name: Build with OpenWrt ${{ matrix.sdk_platform }} SDK (out of tree)
+ name: Build with OpenWrt ${{ matrix.arch }} SDK
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
- sdk_platform:
- - ath79-generic
- - imx-cortexa9
- - malta-be
- - mediatek-mt7622
+ 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: Out of tree build with OpenWrt ${{ matrix.sdk_platform }} SDK
- uses: ynezz/gh-actions-openwrt-ci-sdk@v0.0.2
+ - name: Build with OpenWrt ${{ matrix.arch }} SDK
+ uses: openwrt/gh-action-sdk@v5
env:
- CI_TARGET_SDK_RELEASE: master
- CI_TARGET_SDK_IMAGE: ${{ matrix.sdk_platform }}
+ ARCH: ${{ matrix.arch }}
+ FEEDNAME: ucode_ci
+ PACKAGES: ucode
+
+ - name: Move created packages to project dir
+ run: cp bin/packages/${{ matrix.arch }}/ucode_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/