Browse Source

CI: use SDK depending on destination branch

Not only use snapshot SDKs for master test but whatever destination
branch is used.

Signed-off-by: Paul Spooren <mail@aparcar.org>
lilik-openwrt-22.03
Paul Spooren 4 years ago
parent
commit
ce1de4c0f1
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      .github/workflows/multi-arch-test-build.yml

+ 7
- 3
.github/workflows/multi-arch-test-build.yml View File

@ -2,8 +2,6 @@ name: Test Build
on:
pull_request:
branches:
- master
jobs:
build:
@ -48,10 +46,16 @@ jobs:
echo "Building $PACKAGES"
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
- name: Determine branch name
run: |
BRANCH="${GITHUB_BASE_REF#refs/heads/}"
echo "Building for $BRANCH"
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Build
uses: openwrt/gh-action-sdk@v1
env:
ARCH: ${{ matrix.arch }}
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
FEEDNAME: packages_ci
- name: Move created packages to project dir


Loading…
Cancel
Save