diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-07-11 15:28:49 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-07-12 00:18:43 +0200 |
commit | b9d8f06377608069c2c4ec27cd419ce89a393762 (patch) | |
tree | 000047647f59481e801b9e61c1a927a27f760424 /.github/workflows/openwrt-ci-pull-request.yml | |
parent | c7d84aae09691a99ae3db427c0b2463732ef84f4 (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-pull-request.yml')
-rw-r--r-- | .github/workflows/openwrt-ci-pull-request.yml | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/.github/workflows/openwrt-ci-pull-request.yml b/.github/workflows/openwrt-ci-pull-request.yml index d33d11a..7a75d95 100644 --- a/.github/workflows/openwrt-ci-pull-request.yml +++ b/.github/workflows/openwrt-ci-pull-request.yml @@ -5,6 +5,7 @@ on: branches-ignore: - master pull_request: + types: [opened, reopened] env: CI_ENABLE_UNIT_TESTING: 1 @@ -38,23 +39,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/ |