mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
The CI adds the `packages.git` repository to the `feeds.conf`, which makes the repository redundant. Once called `packages` including the upstream status, once `packages_ci` (previously `action`) including the PRs changes. This commit changes the binary artifact folder from `packages` to `packages_ci`, as the SDK choses packages from the modified PR branch over the `packages` branch. Also add additional targets to test, as each target only takes a few minutes to test: aarch64_cortex-a53, arm_cortex-a15_neon-vfpv4 and i386_pentium4. Signed-off-by: Paul Spooren <mail@aparcar.org>
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: Test Build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: ${{ matrix.arch }} build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch:
|
|
- aarch64_generic
|
|
- arc_arc700
|
|
- arm_cortex-a15_neon-vfpv4
|
|
- arm_cortex-a9_neon
|
|
- arm_cortex-a9_vfpv3-d16
|
|
- i386_pentium4
|
|
- mips_24kc
|
|
- powerpc_464fp
|
|
- powerpc_8540
|
|
- x86_64
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Determine changed packages
|
|
run: |
|
|
PACKAGES="$(git diff --diff-filter=d --name-only origin/master \
|
|
| grep 'Makefile$' | grep -Ev '/files/|/src/' \
|
|
| awk -F/ '{ print $(NF-1) }' | tr '\n' ' ')"
|
|
|
|
echo "Building $PACKAGES"
|
|
|
|
echo "::set-env name=PACKAGES::$PACKAGES"
|
|
|
|
- name: Build
|
|
uses: openwrt/gh-action-sdk@v1
|
|
env:
|
|
ARCH: ${{ matrix.arch }}
|
|
BUILD_LOG: 1
|
|
FEEDNAME: packages_ci
|
|
IGNORE_ERRORS: ""
|
|
V: s
|
|
|
|
- name: Store packages
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.arch}}-packages
|
|
path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
|
|
|
|
- name: Store logs
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.arch}}-logs
|
|
path: logs/
|
|
|