From ce1de4c0f1df64c5265055584f0d9d1f5c8961e1 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 27 Dec 2020 13:13:45 -1000 Subject: [PATCH] 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 --- .github/workflows/multi-arch-test-build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index 11cbc8096..a2cbf8bc4 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -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