mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -2,8 +2,6 @@ name: Test Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -48,10 +46,16 @@ jobs:
|
|||||||
echo "Building $PACKAGES"
|
echo "Building $PACKAGES"
|
||||||
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
|
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
|
- name: Build
|
||||||
uses: openwrt/gh-action-sdk@v1
|
uses: openwrt/gh-action-sdk@v1
|
||||||
env:
|
env:
|
||||||
ARCH: ${{ matrix.arch }}
|
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
|
||||||
FEEDNAME: packages_ci
|
FEEDNAME: packages_ci
|
||||||
|
|
||||||
- name: Move created packages to project dir
|
- name: Move created packages to project dir
|
||||||
|
|||||||
Reference in New Issue
Block a user